Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit b6d8bda

Browse files
committed
Travis ci
There is no missing semicolon. This was my last commit for travis syntax fix.
1 parent 415d983 commit b6d8bda

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/sortable.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,35 +140,29 @@ angular.module('ui.sortable', [])
140140
* If user just defines option for @key callback then it will be attached.
141141
* */
142142
var attrKey = 'uiSortable'+key.substring(0,1).toUpperCase()+key.substring(1);
143-
if(scope[key]!==undefined && scope[key] instanceof Function && attrs[attrKey] !== undefined && attrs[attrKey].length > 0)
144-
{
143+
if(scope[key]!==undefined && scope[key] instanceof Function && attrs[attrKey] !== undefined && attrs[attrKey].length > 0) {
145144

146145
var expression = scope[key]; //Scope variable can be changed on fly.
147146
var receivedFunct = scope.received;
148-
var expressionCapsule = function()
149-
{
150-
try
151-
{
147+
var expressionCapsule = function() {
148+
try {
152149

153150
expression.apply(0,arguments); //Sends all of arguments to callBack function.
154151

155-
if(receivedFunct instanceof Function)
156-
{
152+
if(receivedFunct instanceof Function) {
157153
receivedFunct.apply(0,arguments);
158154
}
159155

160156
}
161-
catch(err)
162-
{
157+
catch(err) {
163158

164159
}
165160

166161
}
167162

168163
value = patchSortableOption(key, expressionCapsule);
169164
}
170-
else
171-
{
165+
else {
172166
value = patchSortableOption(key, value);
173167
}
174168

0 commit comments

Comments
 (0)