This extension defines a custom annotation to apply Eventable Trait and creates the required glue code into the host class.
npm install cocktail --savenpm install cocktail-annotation-evented --save
CocktailJS v0.5.0 or greater is required to use this annotation.
@evented annotation is quite easy. First we need to register the custom annotation with current cocktail instance.
var cocktail =Evented = ;//register Evented annotation with current cocktail instancecocktail;cocktail;
var MyClass =obj;obj = ;obj;obj;
true, the evented annotation will create and add a new instance of node's