Revision: 59356
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 3, 2012 01:23 by mandawan
Initial Code
for(var eventName in $.event.global) { $("*").bind(eventName, function(event) { console.log( event.type+": "+ event.target.nodeName+") "+ Array.prototype.slice.call(arguments, 1).join(", ")); }); }
Initial URL
Initial Description
Quite useful snippet to log all events triggering occuring in your app. Because it uses event.global array, it logs custom events as well as native ones For developpement use only, disable it before migrating to production environement.
Initial Title
Primitive events logger
Initial Tags
jquery
Initial Language
jQuery