File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 27
27
* @returns {jQuery|* }
28
28
*/
29
29
$ . fn . sortable = function ( options ) {
30
- var retVal ;
31
- var callArgs = arguments ;
30
+ var retVal ,
31
+ args = arguments ;
32
+
32
33
this . each ( function ( ) {
33
34
var $el = $ ( this ) ,
34
35
sortable = $el . data ( 'sortable' ) ;
47
48
$el . removeData ( 'sortable' ) ;
48
49
}
49
50
else if ( typeof sortable [ options ] === 'function' ) {
50
- retVal = sortable [ options ] . apply ( sortable , [ ] . slice . call ( callArgs , 1 ) ) ;
51
+ retVal = sortable [ options ] . apply ( sortable , [ ] . slice . call ( args , 1 ) ) ;
51
52
}
52
53
else if ( options in sortable . options ) {
53
- retVal = sortable . option . apply ( sortable , callArgs ) ;
54
+ retVal = sortable . option . apply ( sortable , args ) ;
54
55
}
55
56
}
56
57
} ) ;
57
58
58
59
return ( retVal === void 0 ) ? this : retVal ;
59
60
} ;
60
- } ) ;
61
+ } ) ;
You can’t perform that action at this time.
0 commit comments