diff options
author | Valerio Virgillito | 2012-02-07 13:28:17 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-07 22:34:12 -0800 |
commit | e5579374ff39b80b8c0c69faba37f6f581758fe0 (patch) | |
tree | 5ec9421e15fdd1d5029a453991fa01493138c361 /node_modules/montage/ui/slot.reel/slot.js | |
parent | 668510892537eaaeb2e11520831d87b44b2489b7 (diff) | |
download | ninja-e5579374ff39b80b8c0c69faba37f6f581758fe0.tar.gz |
updated montage v.0.6 to the latest changes.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
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 | ||