CocktailJS Cocktail Versions Save

Traits, Talents & Annotations for NodeJS.

v0.4.5

10 years ago

v0.4.4

10 years ago

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)

v0.4.3

10 years ago

v0.4.2

10 years ago

CocktailJS v0.4.2

  • Added @static annotation
  • Fixes for issues with constructors in inherited classes and Single Parameter Class Definition constructors and parameters.

v0.4.1

10 years ago

Fixed issue with Single parameter class definition and chaining constructors.

v0.4.0

10 years ago

New annotation @static added to define static methods and properties on a given Class mix.

v0.3.0

10 years ago

What's New on Version 0.3

'@as' pseudo-annotation

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*/}

});