diff options
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 | }, |