Skip to content

Releases: CocktailJS/cocktail

v0.4.5

28 Oct 22:22

Choose a tag to compare

Fixed issue with Traits/Talents required methods check with traits de…

v0.4.4

24 Oct 22:51

Choose a tag to compare

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

12 Oct 14:43

Choose a tag to compare

version 0.4.3

v0.4.2

09 Oct 12:55

Choose a tag to compare

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

09 Oct 00:42

Choose a tag to compare

Fixed issue with Single parameter class definition and chaining constructors.

v0.4.0

08 Oct 23:01

Choose a tag to compare

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

Version 0.3

23 Sep 00:05

Choose a tag to compare

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

});