From f7e2c04336f612be00e48b325deb8afe72855f3a Mon Sep 17 00:00:00 2001 From: Marko Jovanovic Date: Mon, 21 Sep 2015 11:42:47 +0200 Subject: [PATCH] Bugfix in jquery.binding.js --- jquery.binding.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jquery.binding.js b/jquery.binding.js index 64b1cf1..d8cf610 100644 --- a/jquery.binding.js +++ b/jquery.binding.js @@ -28,7 +28,7 @@ */ $.fn.sortable = function (options) { var retVal; - + var callArgs = arguments; this.each(function () { var $el = $(this), sortable = $el.data('sortable'); @@ -47,14 +47,14 @@ $el.removeData('sortable'); } else if (typeof sortable[options] === 'function') { - retVal = sortable[options].apply(sortable, [].slice.call(arguments, 1)); + retVal = sortable[options].apply(sortable, [].slice.call(callArgs, 1)); } else if (options in sortable.options) { - retVal = sortable.option.apply(sortable, arguments); + retVal = sortable.option.apply(sortable, callArgs); } } }); return (retVal === void 0) ? this : retVal; }; -}); +}); \ No newline at end of file