Comparing version 0.4.2 to 0.4.3
@@ -16,2 +16,7 @@ /* | ||
* @private | ||
* Stack of _queues | ||
*/ | ||
_qStack: [], | ||
/** | ||
* @private | ||
* The queue of processors instances for the given mix | ||
@@ -113,2 +118,20 @@ */ | ||
* @private | ||
* stacks current queue | ||
*/ | ||
_pushQueue: function() { | ||
this._qStack.push(this._queue); | ||
this._queue = []; | ||
}, | ||
/** | ||
* @private | ||
* restore current queue | ||
*/ | ||
_popQueue: function() { | ||
this._queue = this._qStack.pop(); | ||
}, | ||
/** | ||
* @private | ||
* Cleans the processor queue | ||
@@ -238,3 +261,2 @@ */ | ||
mix: function(subject, options){ | ||
if(!options && this._isClassDefition(subject)) { | ||
@@ -245,5 +267,7 @@ return this._processClassDefition(subject); | ||
if(subject){ | ||
this._pushQueue(); | ||
this._applyDefaultsOptions(options); | ||
this._configureProcessorsWith(options); | ||
this._executeProcessorsOn(subject, options); | ||
this._popQueue(); | ||
} | ||
@@ -250,0 +274,0 @@ |
{ | ||
"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.2", | ||
"version": "0.4.3", | ||
"homepage": "http://cocktailjs.github.io", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -111,8 +111,13 @@ # Cocktail JS | ||
- 0.4.2 (current master) | ||
- 0.4.3 (current master) | ||
- status: Alpha | ||
- Fixed issue with mix being called from an annotation process. | ||
- Test added. | ||
- 0.4.2 | ||
- status: Alpha | ||
- Fixed issue with constructor chain parameters. | ||
- Test added for constructor chain parameters. | ||
- 0.4.1 (current master) | ||
- 0.4.1 | ||
- status: Alpha | ||
@@ -119,0 +124,0 @@ - Fixed issue with constructor chain. |
29891
709
179