Browse Source

* callArgs -> args

pull/571/head
RubaXa 9 years ago
parent
commit
16bf388a81
  1. 9
      jquery.binding.js

9
jquery.binding.js

@ -27,8 +27,9 @@
* @returns {jQuery|*} * @returns {jQuery|*}
*/ */
$.fn.sortable = function (options) { $.fn.sortable = function (options) {
var retVal; var retVal,
var callArgs = arguments; args = arguments;
this.each(function () { this.each(function () {
var $el = $(this), var $el = $(this),
sortable = $el.data('sortable'); sortable = $el.data('sortable');
@ -47,10 +48,10 @@
$el.removeData('sortable'); $el.removeData('sortable');
} }
else if (typeof sortable[options] === 'function') { else if (typeof sortable[options] === 'function') {
retVal = sortable[options].apply(sortable, [].slice.call(callArgs, 1)); retVal = sortable[options].apply(sortable, [].slice.call(args, 1));
} }
else if (options in sortable.options) { else if (options in sortable.options) {
retVal = sortable.option.apply(sortable, callArgs); retVal = sortable.option.apply(sortable, args);
} }
} }
}); });

Loading…
Cancel
Save