JSFiddle - React, Tailwind, and code Playground
by kentaromiura
JavaScript
Class.refactor(Events, {
fireEvent: function(){
console.log(arguments)
this.previous.apply(this, arguments);
}
})
var Test = new Class({
Implements: Events,
initialize: function() {}
});
var a = new Test();
a.addEvent('z', function() {});
a.fireEvent('z', 'foo');