diff options
author | Pushkar Joshi | 2012-03-12 15:26:10 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-03-12 15:26:10 -0700 |
commit | 46b2e561fa6ca054cad58e4c372a598bbb7ee2c9 (patch) | |
tree | 38d1c8666098a10078834c1eaac3d455135bee12 /node_modules/montage/ui/loader.reel/loader.js | |
parent | 7b4b068cadc0af8ec7e930e1c2b429e945f96984 (diff) | |
parent | 69d90467865a1384725b2301901be2180c5a841f (diff) | |
download | ninja-46b2e561fa6ca054cad58e4c372a598bbb7ee2c9.tar.gz |
Merge branch 'master' into brushtool
Diffstat (limited to 'node_modules/montage/ui/loader.reel/loader.js')
-rwxr-xr-x | node_modules/montage/ui/loader.reel/loader.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/node_modules/montage/ui/loader.reel/loader.js b/node_modules/montage/ui/loader.reel/loader.js index b392c915..941c17da 100755 --- a/node_modules/montage/ui/loader.reel/loader.js +++ b/node_modules/montage/ui/loader.reel/loader.js | |||
@@ -298,8 +298,7 @@ exports.Loader = Montage.create(Component, /** @lends module:montage/ui/loader.L | |||
298 | 298 | ||
299 | for (i = 0; (iChild = children[i]); i++) { | 299 | for (i = 0; (iChild = children[i]); i++) { |
300 | if ((iComponent = iChild.controller)) { | 300 | if ((iComponent = iChild.controller)) { |
301 | this.childComponents.push(iComponent); | 301 | iComponent.attachToParentComponent(); |
302 | iComponent._cachedParentComponent = this; | ||
303 | iComponent.needsDraw = true; | 302 | iComponent.needsDraw = true; |
304 | } | 303 | } |
305 | } | 304 | } |
@@ -342,8 +341,7 @@ exports.Loader = Montage.create(Component, /** @lends module:montage/ui/loader.L | |||
342 | // based on its template | 341 | // based on its template |
343 | this._mainComponent = exports[this.mainName].create(); | 342 | this._mainComponent = exports[this.mainName].create(); |
344 | this.childComponents.push(this._mainComponent); | 343 | this.childComponents.push(this._mainComponent); |
345 | this._mainComponent._cachedParentComponent = this; | 344 | this._mainComponent.setElementWithParentComponent(document.createElement("div"), this); |
346 | this._mainComponent.element = document.createElement("div"); | ||
347 | this._mainComponent.needsDraw = true; | 345 | this._mainComponent.needsDraw = true; |
348 | } | 346 | } |
349 | }, | 347 | }, |