Skip to content

Commit

Permalink
Merge pull request #566 from medonja/master
Browse files Browse the repository at this point in the history
Bugfix in jquery.binding.js
  • Loading branch information
RubaXa committed Sep 21, 2015
2 parents 3b9b8c9 + f7e2c04 commit 4524cd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jquery.binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
$.fn.sortable = function (options) {
var retVal;

var callArgs = arguments;
this.each(function () {
var $el = $(this),
sortable = $el.data('sortable');
Expand All @@ -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;
};
});
});

0 comments on commit 4524cd8

Please sign in to comment.