diff options
Diffstat (limited to 'js/stage/binding-view.reel/binding-hud.reel/binding-hud.js')
-rwxr-xr-x | js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | 23 |
1 files changed, 12 insertions, 11 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 14347a32..88229683 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 | |||
@@ -26,9 +26,10 @@ exports.BindingHud = Montage.create(Component, { | |||
26 | }, | 26 | }, |
27 | set: function(val) { | 27 | set: function(val) { |
28 | this._bindingArgs = val; | 28 | this._bindingArgs = val; |
29 | this.title = this.bindingArgs.sourceObject.identifier; | 29 | this.title = this.bindingArgs.component.identifier; |
30 | this.x = this._bindingArgs.sourceObject.element.offsetLeft; | 30 | this.x = this._bindingArgs.component.element.offsetLeft; |
31 | this.y = this._bindingArgs.sourceObject.element.offsetTop; | 31 | this.y = this._bindingArgs.component.element.offsetTop; |
32 | this.properties = this._bindingArgs.properties; | ||
32 | this.needsDraw = true; | 33 | this.needsDraw = true; |
33 | console.log("Binding Args Set", val); | 34 | console.log("Binding Args Set", val); |
34 | } | 35 | } |
@@ -62,14 +63,14 @@ exports.BindingHud = Montage.create(Component, { | |||
62 | 63 | ||
63 | prepareForDraw: { | 64 | prepareForDraw: { |
64 | value: function() { | 65 | value: function() { |
65 | var arrProperties = this.application.ninja.objectsController.getEnumerableProperties(this._bindingArgs.sourceObject, true); | 66 | // var arrProperties = this.application.ninja.objectsController.getEnumerableProperties(this._bindingArgs.sourceObject, true); |
66 | arrProperties.forEach(function(obj) { | 67 | // arrProperties.forEach(function(obj) { |
67 | var objBound = false; | 68 | // var objBound = false; |
68 | if(this._bindingArgs._boundObjectPropertyPath === obj) { | 69 | // if(this._bindingArgs._boundObjectPropertyPath === obj) { |
69 | objBound = true; | 70 | // objBound = true; |
70 | } | 71 | // } |
71 | this.properties.push({"title":obj, "bound": objBound}); | 72 | // this.properties.push({"title":obj, "bound": objBound}); |
72 | }.bind(this)); | 73 | // }.bind(this)); |
73 | } | 74 | } |
74 | }, | 75 | }, |
75 | 76 | ||