aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/loader.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-03-08 13:56:09 -0800
committerValerio Virgillito2012-03-08 13:56:09 -0800
commit22a66cb6e243a3f1c867b62e3942fd2e828019d9 (patch)
tree4b2f8bf0d8306964f35435dac3d1f6592b3dee19 /node_modules/montage/ui/loader.reel
parentcef07085443b7c31e878daaad083b7408c57e104 (diff)
downloadninja-22a66cb6e243a3f1c867b62e3942fd2e828019d9.tar.gz
integrating v0.7 montage into ninja
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/loader.reel')
-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 },