diff options
author | Valerio Virgillito | 2012-06-11 23:22:20 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-11 23:22:20 -0700 |
commit | dc503d002be8fe5f12fd3cc6f848b3190c219659 (patch) | |
tree | 7ea89b7e88159d929de98323a1496e2e123f5725 /js/components/treeview | |
parent | b6c88f548c8d3756738e534418732710af733f03 (diff) | |
download | ninja-dc503d002be8fe5f12fd3cc6f848b3190c219659.tar.gz |
removing serializable to the tree and adding a few more missing properties
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/components/treeview')
-rw-r--r-- | js/components/treeview/ninja-branch.reel/ninja-branch.js | 28 | ||||
-rw-r--r-- | js/components/treeview/treeview.reel/treeview.js | 52 |
2 files changed, 40 insertions, 40 deletions
diff --git a/js/components/treeview/ninja-branch.reel/ninja-branch.js b/js/components/treeview/ninja-branch.reel/ninja-branch.js index 48271c2d..72ef3ccd 100644 --- a/js/components/treeview/ninja-branch.reel/ninja-branch.js +++ b/js/components/treeview/ninja-branch.reel/ninja-branch.js | |||
@@ -9,38 +9,38 @@ var Montage = require("montage").Montage, | |||
9 | 9 | ||
10 | var Branch = exports.Branch = Montage.create(TreeNode, { | 10 | var Branch = exports.Branch = Montage.create(TreeNode, { |
11 | label: { | 11 | label: { |
12 | value: null, | 12 | value: null |
13 | serializable: true | 13 | // serializable: true |
14 | }, | 14 | }, |
15 | 15 | ||
16 | branchList: { | 16 | branchList: { |
17 | value: null, | 17 | value: null |
18 | serializable: true | 18 | // serializable: true |
19 | }, | 19 | }, |
20 | 20 | ||
21 | arrayController: { | 21 | arrayController: { |
22 | value: null, | 22 | value: null |
23 | serializable: true | 23 | // serializable: true |
24 | }, | 24 | }, |
25 | 25 | ||
26 | repetition:{ | 26 | repetition:{ |
27 | value: null, | 27 | value: null |
28 | serializable: true | 28 | // serializable: true |
29 | }, | 29 | }, |
30 | 30 | ||
31 | leafComponent: { | 31 | leafComponent: { |
32 | value: null, | 32 | value: null |
33 | serializable: true | 33 | // serializable: true |
34 | }, | 34 | }, |
35 | 35 | ||
36 | branchComponent: { | 36 | branchComponent: { |
37 | value: null, | 37 | value: null |
38 | serializable: true | 38 | // serializable: true |
39 | }, | 39 | }, |
40 | 40 | ||
41 | collapser: { | 41 | collapser: { |
42 | value: null, | 42 | value: null |
43 | serializable: true | 43 | // serializable: true |
44 | }, | 44 | }, |
45 | 45 | ||
46 | prepareForDraw : { | 46 | prepareForDraw : { |
diff --git a/js/components/treeview/treeview.reel/treeview.js b/js/components/treeview/treeview.reel/treeview.js index 03e28c93..81dacbca 100644 --- a/js/components/treeview/treeview.reel/treeview.js +++ b/js/components/treeview/treeview.reel/treeview.js | |||
@@ -14,42 +14,42 @@ exports.Treeview = Montage.create(Component, { | |||
14 | rootBranch : { value : null }, | 14 | rootBranch : { value : null }, |
15 | 15 | ||
16 | activationEvent: { | 16 | activationEvent: { |
17 | value: null, | 17 | value: null |
18 | serializable: true | 18 | // serializable: true |
19 | }, | 19 | }, |
20 | 20 | ||
21 | _hasBeenDeserialized: { | 21 | _hasBeenDeserialized: { |
22 | value: false, | 22 | value: false |
23 | enumerable: false | 23 | // enumerable: false |
24 | }, | 24 | }, |
25 | 25 | ||
26 | branchComponent : { | 26 | branchComponent : { |
27 | value: null, | 27 | value: null |
28 | serializable: true | 28 | // serializable: true |
29 | }, | 29 | }, |
30 | leafComponent : { | 30 | leafComponent : { |
31 | value: null, | 31 | value: null |
32 | serializable: true | 32 | // serializable: true |
33 | }, | 33 | }, |
34 | 34 | ||
35 | defaultBranchComponent: { | 35 | defaultBranchComponent: { |
36 | value: null, | 36 | value: null |
37 | serializable: true | 37 | // serializable: true |
38 | }, | 38 | }, |
39 | 39 | ||
40 | defaultLeafComponent: { | 40 | defaultLeafComponent: { |
41 | value: null, | 41 | value: null |
42 | serializable: true | 42 | // serializable: true |
43 | }, | 43 | }, |
44 | 44 | ||
45 | scrollview: { | 45 | scrollview: { |
46 | value: null, | 46 | value: null |
47 | serializable: true | 47 | // serializable: true |
48 | }, | 48 | }, |
49 | 49 | ||
50 | slot: { | 50 | slot: { |
51 | value: null, | 51 | value: null |
52 | serializable: true | 52 | // serializable: true |
53 | }, | 53 | }, |
54 | 54 | ||
55 | hasTemplate: { | 55 | hasTemplate: { |
@@ -77,18 +77,18 @@ exports.Treeview = Montage.create(Component, { | |||
77 | rootBranch.hideLabel = !this.showRoot; | 77 | rootBranch.hideLabel = !this.showRoot; |
78 | rootBranch.treeView = this; | 78 | rootBranch.treeView = this; |
79 | 79 | ||
80 | // this.slot.content = rootBranch; | 80 | this.slot.content = rootBranch; |
81 | // rootBranch.sourceObject = this.contentController.root; | 81 | rootBranch.sourceObject = this.contentController.root; |
82 | // rootBranch.needsDraw = true; | 82 | rootBranch.needsDraw = true; |
83 | // this.rootBranch = rootBranch; | 83 | this.rootBranch = rootBranch; |
84 | // | 84 | |
85 | // this.needsDraw = true; | 85 | this.needsDraw = true; |
86 | 86 | ||
87 | } | 87 | } |
88 | }, | 88 | }, |
89 | showRoot : { | 89 | showRoot : { |
90 | value: null, | 90 | value: null |
91 | serializable: true | 91 | // serializable: true |
92 | }, | 92 | }, |
93 | 93 | ||
94 | _contentController: { | 94 | _contentController: { |
@@ -135,8 +135,8 @@ exports.Treeview = Montage.create(Component, { | |||
135 | } | 135 | } |
136 | } | 136 | } |
137 | 137 | ||
138 | }, | 138 | } |
139 | serializable: true | 139 | // serializable: true |
140 | }, | 140 | }, |
141 | 141 | ||
142 | deserializedFromTemplate: { | 142 | deserializedFromTemplate: { |