|
|
@ -28,7 +28,7 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
$.fn.sortable = function (options) { |
|
|
|
$.fn.sortable = function (options) { |
|
|
|
var retVal; |
|
|
|
var retVal; |
|
|
|
|
|
|
|
var callArgs = arguments; |
|
|
|
this.each(function () { |
|
|
|
this.each(function () { |
|
|
|
var $el = $(this), |
|
|
|
var $el = $(this), |
|
|
|
sortable = $el.data('sortable'); |
|
|
|
sortable = $el.data('sortable'); |
|
|
@ -47,14 +47,14 @@ |
|
|
|
$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(arguments, 1)); |
|
|
|
retVal = sortable[options].apply(sortable, [].slice.call(callArgs, 1)); |
|
|
|
} |
|
|
|
} |
|
|
|
else if (options in sortable.options) { |
|
|
|
else if (options in sortable.options) { |
|
|
|
retVal = sortable.option.apply(sortable, arguments); |
|
|
|
retVal = sortable.option.apply(sortable, callArgs); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return (retVal === void 0) ? this : retVal; |
|
|
|
return (retVal === void 0) ? this : retVal; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}); |
|
|
|
}); |