diff options
author | Nivesh Rajbhandari | 2012-04-04 17:24:27 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-04 17:24:27 -0700 |
commit | 01cf259da7aaa7d70789d9a7c32111d88b477463 (patch) | |
tree | 0bff3395ac681e5f685d2267f7dbc03a8e32bc4a /js/components/menu/menu-item.reel | |
parent | 331ea08655245e3532e48bf160d5f68a04d8723f (diff) | |
parent | 13368ca6ebbc13adeafccd898dfffd7ce37cb28a (diff) | |
download | ninja-01cf259da7aaa7d70789d9a7c32111d88b477463.tar.gz |
Merge branch 'refs/heads/ToolFixes' into WebGLMaterials
Conflicts:
js/document/templates/montage-html/default_html.css
js/mediators/element-mediator.js
js/panels/properties.reel/properties.js
js/tools/BrushTool.js
js/tools/LineTool.js
js/tools/PenTool.js
js/tools/SelectionTool.js
js/tools/ShapeTool.js
js/tools/TranslateObject3DTool.js
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/components/menu/menu-item.reel')
-rwxr-xr-x | js/components/menu/menu-item.reel/menu-item.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/js/components/menu/menu-item.reel/menu-item.js b/js/components/menu/menu-item.reel/menu-item.js index 64a89a6a..26fc7573 100755 --- a/js/components/menu/menu-item.reel/menu-item.js +++ b/js/components/menu/menu-item.reel/menu-item.js | |||
@@ -61,6 +61,8 @@ 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 | if(!this.data) return; | 66 | if(!this.data) return; |
65 | 67 | ||
66 | if(this.data.separator) { | 68 | if(this.data.separator) { |
@@ -82,9 +84,14 @@ exports.MenuItem = Montage.create(Component, { | |||
82 | } | 84 | } |
83 | 85 | ||
84 | if(this.data.enabled.boundProperty) { | 86 | if(this.data.enabled.boundProperty) { |
87 | |||
88 | boundObject = this.application.ninja[this.data.enabled.boundObj]; | ||
89 | |||
85 | Object.defineBinding(this, "enabled", { | 90 | Object.defineBinding(this, "enabled", { |
86 | boundObject: this.application.ninja[this.data.enabled.boundObj], | 91 | boundObject: boundObject, |
87 | boundObjectPropertyPath: this.data.enabled.boundProperty | 92 | boundObjectPropertyPath: this.data.enabled.boundProperty, |
93 | boundValueMutator: this.data.enabled.boundValueMutator, | ||
94 | oneway : this.data.enabled.oneway | ||
88 | }); | 95 | }); |
89 | 96 | ||
90 | } else { | 97 | } else { |
@@ -134,7 +141,7 @@ exports.MenuItem = Montage.create(Component, { | |||
134 | 141 | ||
135 | if(this.data.radio && this.checked) return; | 142 | if(this.data.radio && this.checked) return; |
136 | 143 | ||
137 | if(this.enabled || !this.submenu) { | 144 | if((this.enabled === true) && (this.submenu === false) ) { |
138 | if(this.data.action) { | 145 | if(this.data.action) { |
139 | NJevent ( this.data.action ); | 146 | NJevent ( this.data.action ); |
140 | } else if(this.checked !== null) { | 147 | } else if(this.checked !== null) { |