aboutsummaryrefslogtreecommitdiff
path: root/js/components/menu/menu-item.reel/menu-item.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-29 23:52:59 -0700
committerValerio Virgillito2012-05-29 23:52:59 -0700
commitd8840eda0d3b3e31fb5a72306fe66608f4f99c2b (patch)
treeb95ee9919673fef42980ac58d11bd3f1bcb6b6af /js/components/menu/menu-item.reel/menu-item.js
parent5d7dff15e1e603e3b37057b9843e4b1eef1b2dca (diff)
downloadninja-d8840eda0d3b3e31fb5a72306fe66608f4f99c2b.tar.gz
fixing the menu bindings and some cleanup of the stage
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/components/menu/menu-item.reel/menu-item.js')
-rwxr-xr-xjs/components/menu/menu-item.reel/menu-item.js20
1 files changed, 1 insertions, 19 deletions
diff --git a/js/components/menu/menu-item.reel/menu-item.js b/js/components/menu/menu-item.reel/menu-item.js
index 9c18ed37..c00c4412 100755
--- a/js/components/menu/menu-item.reel/menu-item.js
+++ b/js/components/menu/menu-item.reel/menu-item.js
@@ -14,7 +14,7 @@ exports.MenuItem = Montage.create(Component, {
14 }, 14 },
15 15
16 _enabled: { 16 _enabled: {
17 value: null 17 value: false
18 }, 18 },
19 19
20 enabled: { 20 enabled: {
@@ -61,7 +61,6 @@ exports.MenuItem = Montage.create(Component, {
61 61
62 prepareForDraw: { 62 prepareForDraw: {
63 value: function() { 63 value: function() {
64 var boundObject = this.application.ninja, strArr = null, i=0;
65 64
66 if(!this.data) return; 65 if(!this.data) return;
67 66
@@ -82,24 +81,7 @@ exports.MenuItem = Montage.create(Component, {
82 }); 81 });
83 82
84 } 83 }
85/*
86 if(this.data.enabled.boundProperty) {
87
88 boundObject = this.application.ninja[this.data.enabled.boundObj];
89
90 Object.defineBinding(this, "enabled", {
91 boundObject: boundObject,
92 boundObjectPropertyPath: this.data.enabled.boundProperty,
93 boundValueMutator: this.data.enabled.boundValueMutator,
94 oneway : this.data.enabled.oneway
95 });
96 84
97 } else {
98 */
99 this.enabled = this.data.enabled;
100 /*
101 }
102 */
103 if(this.data.submenu) { 85 if(this.data.submenu) {
104 this.submenu = true; 86 this.submenu = true;
105 87