diff options
author | Valerio Virgillito | 2012-02-08 22:15:41 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-08 22:15:41 -0800 |
commit | c7df002135328edac03e72a1e4b331b2c72667f8 (patch) | |
tree | ee50509df494b069d1769b7b54afd83fd0178e64 /node_modules/montage/ui/slot.reel/slot.js | |
parent | 725c54ff4af40f70b7dbd4508da34d2909cea8bd (diff) | |
parent | 35ad4d6d2fac4432046141c63c0209cf3d00be5c (diff) | |
download | ninja-c7df002135328edac03e72a1e4b331b2c72667f8.tar.gz |
Merge branch 'refs/heads/master' into components
Diffstat (limited to 'node_modules/montage/ui/slot.reel/slot.js')
-rwxr-xr-x | node_modules/montage/ui/slot.reel/slot.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/node_modules/montage/ui/slot.reel/slot.js b/node_modules/montage/ui/slot.reel/slot.js index 45c0ac1d..818cc68d 100755 --- a/node_modules/montage/ui/slot.reel/slot.js +++ b/node_modules/montage/ui/slot.reel/slot.js | |||
@@ -247,7 +247,10 @@ var Slot = exports.Slot = Montage.create(Component, /** @lends module:"montage/u | |||
247 | 247 | ||
248 | // Introduce to the componentTree if content appended was a component | 248 | // Introduce to the componentTree if content appended was a component |
249 | if (this._contentToAppend && (typeof this._contentToAppend.element !== "undefined")) { | 249 | if (this._contentToAppend && (typeof this._contentToAppend.element !== "undefined")) { |
250 | this.childComponents = [this._contentToAppend]; | 250 | this._contentToAppend.attachToParentComponent(); |
251 | // HACK: gets around the issue of the component never being part of the draw loop again because of the idempotence of the needsDraw = true. | ||
252 | this._contentToAppend.needsDraw = false; | ||
253 | this._contentToAppend.needsDraw = true; | ||
251 | } | 254 | } |
252 | } | 255 | } |
253 | 256 | ||