diff options
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 | 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 | ||