Skip to content

Commit

Permalink
Fix .create. Closes #70 (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkaron committed Feb 18, 2013
1 parent 5361d8b commit 98d184b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ define([ "troopjs-utils/unique", "poly/object" ], function ComponentFactoryModul
* @returns {*}
*/
function create() {
return this.apply(null, arguments);
return extend.apply(this, arguments)();
}

/**
Expand Down Expand Up @@ -348,7 +348,7 @@ define([ "troopjs-utils/unique", "poly/object" ], function ComponentFactoryModul
// Add CREATE to factoryDescriptors
factoryDescriptors[CREATE] = {
"value" : function FactoryCreate() {
return Factory.apply(null, arguments).create();
return Factory.apply(null, arguments)();
}
};

Expand Down

0 comments on commit 98d184b

Please # to comment.