We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4524cd8 commit 16bf388Copy full SHA for 16bf388
jquery.binding.js
@@ -27,8 +27,9 @@
27
* @returns {jQuery|*}
28
*/
29
$.fn.sortable = function (options) {
30
- var retVal;
31
- var callArgs = arguments;
+ var retVal,
+ args = arguments;
32
+
33
this.each(function () {
34
var $el = $(this),
35
sortable = $el.data('sortable');
@@ -47,14 +48,14 @@
47
48
$el.removeData('sortable');
49
}
50
else if (typeof sortable[options] === 'function') {
- retVal = sortable[options].apply(sortable, [].slice.call(callArgs, 1));
51
+ retVal = sortable[options].apply(sortable, [].slice.call(args, 1));
52
53
else if (options in sortable.options) {
- retVal = sortable.option.apply(sortable, callArgs);
54
+ retVal = sortable.option.apply(sortable, args);
55
56
57
});
58
59
return (retVal === void 0) ? this : retVal;
60
};
-});
61
+});
0 commit comments