diff options
author | Eric Guzman | 2012-06-11 13:10:34 -0700 |
---|---|---|
committer | Eric Guzman | 2012-06-11 13:10:34 -0700 |
commit | 61f0af861fa61a5b0b52b4e3522a368ec3d6acf4 (patch) | |
tree | dc0ea1314962d9a161b2181e7dac67b60a0da15d /js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js | |
parent | a9a6d479e4f00134b32f7c3e657de3ce5cfb0c48 (diff) | |
parent | 555fd6efa605b937800b3979a4c68fa7eb8666ae (diff) | |
download | ninja-61f0af861fa61a5b0b52b4e3522a368ec3d6acf4.tar.gz |
Merge branch 'binding' of github.com:dhg637/ninja-internal into binding
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 | ||