diff --git a/src/component/factory.js b/src/component/factory.js index 546a4dd..940e4eb 100644 --- a/src/component/factory.js +++ b/src/component/factory.js @@ -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)(); } /** @@ -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)(); } };