I\'m trying to give my plugin callback functionality, and I\'d like for it to operate in a somewhat traditional way:
myPlugin({options}, function() { /*
An example bit late, but it can be useful. Using arguments can create the same functionality.
$.fn.myPlugin = function() { var el = $(this[0]); var args = arguments[0] || {}; var callBack = arguments[1]; ..... if (typeof callback == 'function') { callback.call(this); } }