I am playing around with Mootools Prime and I can't figure out what the 
best way is to add events to a class. Or a prime, if that is a more correct 
way to refer to classes the new version?

It looks like I can add events either by directly inheriting from the 
emitter class, which is awkward because then I can't inherit from other 
classes, or by calling implement(new emitter()) on the class after it is 
declared, which is also awkward because then the declaration have to go 
after the class definition. Presumably some of the methods on the class 
would like to call this.emit(), and it just feels a little wrong to have 
add the emit functionality after defining a method that uses it.

Is there anything like the Implements property that the current Class 
supports?

Reply via email to