Comparing version 0.4.1 to 0.4.2
@@ -184,3 +184,3 @@ /* | ||
_getDefaultClassConstructor: function (subject) { | ||
var ctor; | ||
var ctor, parent; | ||
@@ -190,4 +190,5 @@ if (this._isPropertyDefinedIn('constructor', subject)) { | ||
} else if (this._isPropertyDefinedIn('@extends', subject)) { | ||
parent = subject['@extends']; | ||
ctor = function(){ | ||
this.callSuper('constructor', arguments); | ||
parent.prototype.constructor.apply(this, arguments); | ||
}; | ||
@@ -194,0 +195,0 @@ } else { |
{ | ||
"name": "cocktail", | ||
"description": "CocktailJS is a small library to explore traits, talents, inheritance and annotations concepts in nodejs - Shake your objects and classes with Cocktail!", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"homepage": "http://cocktailjs.github.io", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -111,2 +111,12 @@ # Cocktail JS | ||
- 0.4.2 (current master) | ||
- status: Alpha | ||
- Fixed issue with constructor chain parameters. | ||
- Test added for constructor chain parameters. | ||
- 0.4.1 (current master) | ||
- status: Alpha | ||
- Fixed issue with constructor chain. | ||
- Test added for single parameter class definition constructor chain. | ||
- 0.4.0 | ||
@@ -113,0 +123,0 @@ - status: Alpha |
29352
687
174