/ Published in: jQuery
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.
Expand |
Embed | Plain Text
for(var eventName in $.event.global) { $("*").bind(eventName, function(event) { console.log( event.type+": "+ event.target.nodeName+") "+ Array.prototype.slice.call(arguments, 1).join(", ")); }); }
You need to login to post a comment.
