aboutsummaryrefslogtreecommitdiff
path: root/js/components/menu
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/menu')
-rwxr-xr-xjs/components/menu/menu-item.reel/menu-item.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/js/components/menu/menu-item.reel/menu-item.js b/js/components/menu/menu-item.reel/menu-item.js
index 8d975c4b..3e1c43da 100755
--- a/js/components/menu/menu-item.reel/menu-item.js
+++ b/js/components/menu/menu-item.reel/menu-item.js
@@ -84,10 +84,8 @@ exports.MenuItem = Montage.create(Component, {
84 } 84 }
85 85
86 if(this.data.enabled.boundProperty) { 86 if(this.data.enabled.boundProperty) {
87 strArr = this.data.enabled.boundObj.split("."); 87
88 for(i=0;i<strArr.length;i++){ 88 boundObject = this.application.ninja[this.data.enabled.boundObj];
89 boundObject = boundObject[strArr[i]];
90 }
91 89
92 Object.defineBinding(this, "enabled", { 90 Object.defineBinding(this, "enabled", {
93 boundObject: boundObject, 91 boundObject: boundObject,
@@ -143,7 +141,7 @@ exports.MenuItem = Montage.create(Component, {
143 141
144 if(this.data.radio && this.checked) return; 142 if(this.data.radio && this.checked) return;
145 143
146 if(this.enabled || !this.submenu) { 144 if(((this.data.enabled === true) || (this.data.enabled.boundProperty && (this.data.enabled.value === true))) && (this.submenu === false) ) {
147 if(this.data.action) { 145 if(this.data.action) {
148 NJevent ( this.data.action ); 146 NJevent ( this.data.action );
149 } else if(this.checked !== null) { 147 } else if(this.checked !== null) {