Comparing version 0.4.5 to 0.4.6
##CHANGE LOG | ||
- 0.4.6 | ||
- status: Alpha | ||
- Fixed issue with Traits/Talents throwing errors on excluded/aliased methods. See #13. | ||
- 0.4.5 | ||
@@ -4,0 +8,0 @@ - status: Alpha |
@@ -31,3 +31,3 @@ /* | ||
if(value){ | ||
if(value && typeof value === 'object'){ | ||
value['exports'] = subject; | ||
@@ -34,0 +34,0 @@ } |
@@ -41,5 +41,6 @@ /* | ||
mthdArgs = Array.prototype.slice.call(arguments, 1); | ||
if(mthd){ | ||
return mthd.apply(this, mthdArgs); | ||
if(!mthd){ | ||
throw new Error("There is no method named " + mthd + " in parent class."); | ||
} | ||
return mthd.apply(this, mthdArgs); | ||
}; | ||
@@ -46,0 +47,0 @@ } |
@@ -54,6 +54,7 @@ /* | ||
this._raiseErrorIfItIsState(key, tp); | ||
this._raiseErrorIfConflict(key, subject, tp); | ||
if(excluded.indexOf(key) === -1){ | ||
alias = aliases[key] || key; | ||
this._raiseErrorIfConflict(alias, subject, tp); | ||
@@ -60,0 +61,0 @@ if(!subject[alias] || subject[alias] === Requires.requiredMethod){ |
{ | ||
"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.5", | ||
"version": "0.4.6", | ||
"homepage": "http://cocktailjs.github.io", | ||
@@ -6,0 +6,0 @@ "author": { |
30736
711