From f7e4257745ccd44b8d24555f0ef787429d6e472c Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 5 Jun 2012 00:11:03 -0700 Subject: adding the latest v0.10 montage Signed-off-by: Valerio Virgillito --- node_modules/montage/ui/slot.reel/slot.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'node_modules/montage/ui/slot.reel') diff --git a/node_modules/montage/ui/slot.reel/slot.js b/node_modules/montage/ui/slot.reel/slot.js index 9d7ceb6f..36341552 100755 --- a/node_modules/montage/ui/slot.reel/slot.js +++ b/node_modules/montage/ui/slot.reel/slot.js @@ -21,6 +21,12 @@ exports.Slot = Montage.create(Component, /** @lends module:"montage/ui/slot.reel value: false }, + didCreate: { + value: function() { + this.content = null; + } + }, + /** Description TODO @type {Property} @@ -32,6 +38,10 @@ exports.Slot = Montage.create(Component, /** @lends module:"montage/ui/slot.reel serializable: true }, + _content: { + value: null + }, + /** Description TODO @type {Function} @@ -40,7 +50,7 @@ exports.Slot = Montage.create(Component, /** @lends module:"montage/ui/slot.reel content: { enumerable: false, get: function() { - return Object.getPropertyDescriptor(Component, "domContent").get.call(this); + return this._content; }, set: function(value) { var element; @@ -63,6 +73,7 @@ exports.Slot = Montage.create(Component, /** @lends module:"montage/ui/slot.reel } else { Object.getPropertyDescriptor(Component, "domContent").set.call(this, value); } + this._content = value; this.needsDraw = true; } }, -- cgit v1.2.3