$.extend({ myFunc : function(someArg, callbackFnk){ // do something here var data = 'test'; // now call a callback function if(typeof callbackFnk == 'function'){ callbackFnk.call(this, data); } }});$.myFunc(someArg, function(arg){ // now my function is not hardcoded // in the plugin itself // and arg = 'test'});
Group items matching
in title, tags, annotations or urlCATATAN - 0 views
Plugins | jQuery Plugins - 0 views
2More