Skip to content

Commit 16bf388

Browse files
committed
* callArgs -> args
1 parent 4524cd8 commit 16bf388

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

jquery.binding.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
* @returns {jQuery|*}
2828
*/
2929
$.fn.sortable = function (options) {
30-
var retVal;
31-
var callArgs = arguments;
30+
var retVal,
31+
args = arguments;
32+
3233
this.each(function () {
3334
var $el = $(this),
3435
sortable = $el.data('sortable');
@@ -47,14 +48,14 @@
4748
$el.removeData('sortable');
4849
}
4950
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));
5152
}
5253
else if (options in sortable.options) {
53-
retVal = sortable.option.apply(sortable, callArgs);
54+
retVal = sortable.option.apply(sortable, args);
5455
}
5556
}
5657
});
5758

5859
return (retVal === void 0) ? this : retVal;
5960
};
60-
});
61+
});

0 commit comments

Comments
 (0)