From 0e1a276f19ea70009c5a649e9667861d7c346a7e Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Wed, 6 Jun 2012 00:25:27 -0700 Subject: first iteration of adding serializable to ninja plus other changes to run the latest montage Signed-off-by: Valerio Virgillito --- js/panels/Panel.reel/Panel.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'js/panels/Panel.reel/Panel.js') diff --git a/js/panels/Panel.reel/Panel.js b/js/panels/Panel.reel/Panel.js index 0c5f0b4b..fde5c962 100755 --- a/js/panels/Panel.reel/Panel.js +++ b/js/panels/Panel.reel/Panel.js @@ -13,6 +13,11 @@ exports.Panel = Montage.create(Component, { value: "Panel" }, + panelContent: { + value: null, + serializable: true + }, + _collapsed: { value: false }, @@ -46,7 +51,8 @@ exports.Panel = Montage.create(Component, { }, resizer: { - value: null + value: null, + serializable: true }, modulePath: { -- cgit v1.2.3 From 844d59d85a1881525c79a1f44a35a9ea59e70e4a Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 12 Jun 2012 00:02:22 -0700 Subject: removing the serializable from the timeline repetition and fixing the panels currentDocument binding Signed-off-by: Valerio Virgillito --- js/panels/Panel.reel/Panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/panels/Panel.reel/Panel.js') diff --git a/js/panels/Panel.reel/Panel.js b/js/panels/Panel.reel/Panel.js index fde5c962..15eb4da9 100755 --- a/js/panels/Panel.reel/Panel.js +++ b/js/panels/Panel.reel/Panel.js @@ -122,8 +122,8 @@ exports.Panel = Montage.create(Component, { this._currentDocument = value; - if(typeof this.panelContent.content[0].controller._currentDocument !== "undefined") { - this.panelContent.content[0].controller.currentDocument = this._currentDocument; + if(typeof this.panelContent.content._element.controller._currentDocument !== "undefined") { + this.panelContent.content._element.controller.currentDocument = this._currentDocument; } if(!value) { -- cgit v1.2.3