aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/loader.reel/loader.js
diff options
context:
space:
mode:
authorJon Reid2012-03-09 16:47:26 -0800
committerJon Reid2012-03-09 16:47:26 -0800
commitbe59c44f9232104ded1a9c4cd888d70021eba33e (patch)
treeb94c8432759362e035f15c0936c575a2861b6ad8 /node_modules/montage/ui/loader.reel/loader.js
parent54b31ecbd4c9877183850542227c61946a62aa4f (diff)
parenta28cb88194f45325e42dd8c774469424712dd6f4 (diff)
downloadninja-be59c44f9232104ded1a9c4cd888d70021eba33e.tar.gz
Merge remote-tracking branch 'ninja-jduran/TimelineUber' into Timeline-local
Diffstat (limited to 'node_modules/montage/ui/loader.reel/loader.js')
-rwxr-xr-xnode_modules/montage/ui/loader.reel/loader.js6
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 },