Skip to content

Commit 4524cd8

Browse files
committed
Merge pull request #566 from medonja/master
Bugfix in jquery.binding.js
2 parents 3b9b8c9 + f7e2c04 commit 4524cd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jquery.binding.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929
$.fn.sortable = function (options) {
3030
var retVal;
31-
31+
var callArgs = arguments;
3232
this.each(function () {
3333
var $el = $(this),
3434
sortable = $el.data('sortable');
@@ -47,14 +47,14 @@
4747
$el.removeData('sortable');
4848
}
4949
else if (typeof sortable[options] === 'function') {
50-
retVal = sortable[options].apply(sortable, [].slice.call(arguments, 1));
50+
retVal = sortable[options].apply(sortable, [].slice.call(callArgs, 1));
5151
}
5252
else if (options in sortable.options) {
53-
retVal = sortable.option.apply(sortable, arguments);
53+
retVal = sortable.option.apply(sortable, callArgs);
5454
}
5555
}
5656
});
5757

5858
return (retVal === void 0) ? this : retVal;
5959
};
60-
});
60+
});

0 commit comments

Comments
 (0)