diff options
author | Armen Kesablyan | 2012-06-19 23:36:35 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-19 23:36:35 -0700 |
commit | e506b93b285a1666999afe7cf65317cb6552db03 (patch) | |
tree | bb9925ca801ff1031ae443aba49676e5c41a5857 /js/stage/binding-view.reel/binding-hud-option.reel | |
parent | f0014635213061f1d945442140257750e666e752 (diff) | |
download | ninja-e506b93b285a1666999afe7cf65317cb6552db03.tar.gz |
Showing Bound Items in hud
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/stage/binding-view.reel/binding-hud-option.reel')
-rwxr-xr-x | js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js index 59e070e8..fb0fd57e 100755 --- a/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js +++ b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js | |||
@@ -33,6 +33,10 @@ exports.BindingHudOption = Montage.create(Component, { | |||
33 | prepareForDraw: { | 33 | prepareForDraw: { |
34 | value: function() { | 34 | value: function() { |
35 | // Set Up Listener for click and propagate up to Binding View | 35 | // Set Up Listener for click and propagate up to Binding View |
36 | var matchesBound = this.parentComponent.parentComponent.boundProperties.filter(function(obj) { | ||
37 | return (obj === this.title); | ||
38 | }.bind(this)); | ||
39 | if(matchesBound.length > 0) this.bound = true; | ||
36 | } | 40 | } |
37 | }, | 41 | }, |
38 | 42 | ||