This repository was archived by the owner on Sep 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments