aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/slot.reel/slot.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-08 22:15:41 -0800
committerValerio Virgillito2012-02-08 22:15:41 -0800
commitc7df002135328edac03e72a1e4b331b2c72667f8 (patch)
treeee50509df494b069d1769b7b54afd83fd0178e64 /node_modules/montage/ui/slot.reel/slot.js
parent725c54ff4af40f70b7dbd4508da34d2909cea8bd (diff)
parent35ad4d6d2fac4432046141c63c0209cf3d00be5c (diff)
downloadninja-c7df002135328edac03e72a1e4b331b2c72667f8.tar.gz
Merge branch 'refs/heads/master' into components
Diffstat (limited to 'node_modules/montage/ui/slot.reel/slot.js')
-rwxr-xr-xnode_modules/montage/ui/slot.reel/slot.js5
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