Spying unobtrusively on Class instance events in MooTools
Ever needed to debug how your Class instances fire Events? It can be frustrating and messy, especially if you do not have access to the original Class prototype source. But, you can hack your way around this and create a transparent spy on all fireEvent methods on any Class instance. Here is how: (function() { var spyId = ‘spyEvent’; Class.extend({… Read more →
Recent Comments