diff options
Diffstat (limited to 'js/stage/binding-view.reel/binding-hud.reel')
-rwxr-xr-x | js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js index 88229683..acd072f9 100755 --- a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js +++ b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | |||
@@ -25,13 +25,17 @@ exports.BindingHud = Montage.create(Component, { | |||
25 | return this._bindingArgs; | 25 | return this._bindingArgs; |
26 | }, | 26 | }, |
27 | set: function(val) { | 27 | set: function(val) { |
28 | this._bindingArgs = val; | 28 | if (typeof(val) !== "undefined") { |
29 | this.title = this.bindingArgs.component.identifier; | 29 | this._bindingArgs = val; |
30 | this.x = this._bindingArgs.component.element.offsetLeft; | 30 | this.title = this.bindingArgs.component.identifier; |
31 | this.y = this._bindingArgs.component.element.offsetTop; | 31 | this.x = this._bindingArgs.component.element.offsetLeft; |
32 | this.properties = this._bindingArgs.properties; | 32 | this.y = this._bindingArgs.component.element.offsetTop; |
33 | this.needsDraw = true; | 33 | this.properties = this._bindingArgs.properties; |
34 | console.log("Binding Args Set", val); | 34 | this.needsDraw = true; |
35 | console.log("Binding Args Set", val); | ||
36 | } else { | ||
37 | this.properties = []; | ||
38 | } | ||
35 | } | 39 | } |
36 | }, | 40 | }, |
37 | 41 | ||