jquery Programming Glossary: fn2
Extend a jQuery plugin http://stackoverflow.com/questions/1149274/extend-a-jquery-plugin .fn.pluginBar.fn4 .fn.pluginBar function private members only this plugin can access them var fn1 function ... var fn2 function ... public members other plugin can access that as well fn3 is defined in the return fn4 allows to access private..
Equivalent of deprecated jQuery Toggle Event [duplicate] http://stackoverflow.com/questions/14338078/equivalent-of-deprecated-jquery-toggle-event removing it Here is the code it is a self contained jQuery plugin and can be used as is. jQuery.fn.toggle function fn fn2 Don't mess with animation or css toggles if jQuery.isFunction fn jQuery.isFunction fn2 return oldToggle.apply this arguments.. jQuery.fn.toggle function fn fn2 Don't mess with animation or css toggles if jQuery.isFunction fn jQuery.isFunction fn2 return oldToggle.apply this arguments migrateWarn jQuery.fn.toggle handler handler... is deprecated Save reference to arguments.. i args.length args i .guid guid return this.click toggler Shorter non tested version function .fn.toggler function fn fn2 var args arguments guid fn.guid .guid i 0 toggler function event var lastToggle ._data this lastToggle fn.guid 0 i ._data..
What to use instead of `toggle(…)` in jQuery > 1.8? http://stackoverflow.com/questions/14382857/what-to-use-instead-of-toggle-in-jquery-1-8 removed in jQuery 1.9 What could be used in general aside from using the jQuery migrate script instead of toggle fn fn2 thats has the same type of functionality Related question asked about a specific case What to use instead toggle I know..
jQuery deferreds and promises - .then() vs .done() http://stackoverflow.com/questions/5436327/jquery-deferreds-and-promises-then-vs-done
|