From d8840eda0d3b3e31fb5a72306fe66608f4f99c2b Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 29 May 2012 23:52:59 -0700 Subject: fixing the menu bindings and some cleanup of the stage Signed-off-by: Valerio Virgillito --- js/components/menu/menu-item.reel/menu-item.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'js/components/menu/menu-item.reel/menu-item.js') 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, { }, _enabled: { - value: null + value: false }, enabled: { @@ -61,7 +61,6 @@ exports.MenuItem = Montage.create(Component, { prepareForDraw: { value: function() { - var boundObject = this.application.ninja, strArr = null, i=0; if(!this.data) return; @@ -82,24 +81,7 @@ exports.MenuItem = Montage.create(Component, { }); } -/* - if(this.data.enabled.boundProperty) { - - boundObject = this.application.ninja[this.data.enabled.boundObj]; - - Object.defineBinding(this, "enabled", { - boundObject: boundObject, - boundObjectPropertyPath: this.data.enabled.boundProperty, - boundValueMutator: this.data.enabled.boundValueMutator, - oneway : this.data.enabled.oneway - }); - } else { - */ - this.enabled = this.data.enabled; - /* - } - */ if(this.data.submenu) { this.submenu = true; -- cgit v1.2.3