diff options
author | Jose Antonio Marquez | 2012-02-07 23:14:08 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-07 23:14:08 -0800 |
commit | 95808eb6ac82b8bf33de658bd135340b66a8fa29 (patch) | |
tree | bae2a7912552241a0476061ce8e7128f46cfd53e /node_modules/montage/ui/slot.reel/slot.js | |
parent | 687cfbbae1df2392267e9602f955f6eadd5b339d (diff) | |
parent | e5579374ff39b80b8c0c69faba37f6f581758fe0 (diff) | |
download | ninja-95808eb6ac82b8bf33de658bd135340b66a8fa29.tar.gz |
Merge branch 'refs/heads/NinjaInternal' into FileIO
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 | ||