diff options
author | Armen Kesablyan | 2012-06-11 10:44:59 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-11 10:44:59 -0700 |
commit | cd8f5e98dd1ba97d81a7f1f2362f9ce481577957 (patch) | |
tree | def5a2feb656cbddde613e756655c2023b8f0bce /js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js | |
parent | 6a27268ebf1cd5fa7bf8313eb5712fd5f6985758 (diff) | |
download | ninja-cd8f5e98dd1ba97d81a7f1f2362f9ce481577957.tar.gz |
Binding-View : Deselect Works Now, Rendering multiple Huds Available
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js')
-rwxr-xr-x | js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js | 11 |
1 files changed, 8 insertions, 3 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 78189415..3eda272c 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 | |||
@@ -39,10 +39,15 @@ exports.BindingHudOption = Montage.create(Component, { | |||
39 | return this._hudOptions; | 39 | return this._hudOptions; |
40 | }, | 40 | }, |
41 | set: function(val) { | 41 | set: function(val) { |
42 | this._hudOptions = val; | 42 | if (typeof(val) !== "undefined") { |
43 | this.title = val.title; | 43 | this._hudOptions = val; |
44 | this.bound = val.bound; | 44 | this.title = val.title; |
45 | this.bound = val.bound; | ||
46 | } else { | ||
47 | this._hudOptions = null; | ||
48 | } | ||
45 | this.needsDraw = true; | 49 | this.needsDraw = true; |
50 | |||
46 | } | 51 | } |
47 | }, | 52 | }, |
48 | 53 | ||