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/components/treeview/treeview.reel/treeview.js | 43 +++++++++++++++++++----- 1 file changed, 35 insertions(+), 8 deletions(-) (limited to 'js/components/treeview/treeview.reel/treeview.js') diff --git a/js/components/treeview/treeview.reel/treeview.js b/js/components/treeview/treeview.reel/treeview.js index 9f78d36d..03e28c93 100644 --- a/js/components/treeview/treeview.reel/treeview.js +++ b/js/components/treeview/treeview.reel/treeview.js @@ -13,6 +13,11 @@ exports.Treeview = Montage.create(Component, { data : { value : null }, rootBranch : { value : null }, + activationEvent: { + value: null, + serializable: true + }, + _hasBeenDeserialized: { value: false, enumerable: false @@ -27,6 +32,26 @@ exports.Treeview = Montage.create(Component, { serializable: true }, + defaultBranchComponent: { + value: null, + serializable: true + }, + + defaultLeafComponent: { + value: null, + serializable: true + }, + + scrollview: { + value: null, + serializable: true + }, + + slot: { + value: null, + serializable: true + }, + hasTemplate: { value: true }, @@ -52,17 +77,18 @@ exports.Treeview = Montage.create(Component, { rootBranch.hideLabel = !this.showRoot; rootBranch.treeView = this; - this.slot.content = rootBranch; - rootBranch.sourceObject = this.contentController.root; - rootBranch.needsDraw = true; - this.rootBranch = rootBranch; - - this.needsDraw = true; +// this.slot.content = rootBranch; +// rootBranch.sourceObject = this.contentController.root; +// rootBranch.needsDraw = true; +// this.rootBranch = rootBranch; +// +// this.needsDraw = true; } }, showRoot : { - value: null + value: null, + serializable: true }, _contentController: { @@ -109,7 +135,8 @@ exports.Treeview = Montage.create(Component, { } } - } + }, + serializable: true }, deserializedFromTemplate: { -- cgit v1.2.3