Traits, Talents & Annotations for NodeJS.
Version 0.4.4
- status: Alpha
- Renamed file lib/Cocktail.js to lib/cocktail.js to agree on module name conventions.
- Changed examples to use `require('cocktail')` to avoid issues on Case Sensitive File Systems (like Linux)
Fixed issue with Single parameter class definition and chaining constructors.
New annotation @static
added to define static methods and properties on a given Class mix.
Added pseudo-annotation @as
to help in Single Parameter Class Definition.
Now you can define a class using a single object parameter with a pseudo-annotaton @as
with a value of "class"
var Cocktail = require('Cocktail');
Cocktail.mix({
'@exports': module,
'@as' : 'class',
'@properties' : {/*Some properties here*/},
myOwnMethod : function () {/*method body here*/}
});