diff --git a/jquery.binding.js b/jquery.binding.js index 16d7729..e81bfd0 100644 --- a/jquery.binding.js +++ b/jquery.binding.js @@ -46,8 +46,8 @@ sortable.destroy(); $el.removeData('sortable'); } - else if (options in sortable) { - retVal = sortable[sortable].apply(sortable, [].slice.call(arguments, 1)); + else if (typeof sortable[options] === 'function') { + retVal = sortable[options].apply(sortable, [].slice.call(arguments, 1)); } } });