From 6a27268ebf1cd5fa7bf8313eb5712fd5f6985758 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Fri, 8 Jun 2012 11:29:13 -0700 Subject: Render Hud Multiple Signed-off-by: Armen Kesablyan --- .../binding-hud.reel/binding-hud.js | 23 +++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'js/stage/binding-view.reel/binding-hud.reel') 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, { }, set: function(val) { this._bindingArgs = val; - this.title = this.bindingArgs.sourceObject.identifier; - this.x = this._bindingArgs.sourceObject.element.offsetLeft; - this.y = this._bindingArgs.sourceObject.element.offsetTop; + this.title = this.bindingArgs.component.identifier; + this.x = this._bindingArgs.component.element.offsetLeft; + this.y = this._bindingArgs.component.element.offsetTop; + this.properties = this._bindingArgs.properties; this.needsDraw = true; console.log("Binding Args Set", val); } @@ -62,14 +63,14 @@ exports.BindingHud = Montage.create(Component, { prepareForDraw: { value: function() { - var arrProperties = this.application.ninja.objectsController.getEnumerableProperties(this._bindingArgs.sourceObject, true); - arrProperties.forEach(function(obj) { - var objBound = false; - if(this._bindingArgs._boundObjectPropertyPath === obj) { - objBound = true; - } - this.properties.push({"title":obj, "bound": objBound}); - }.bind(this)); +// var arrProperties = this.application.ninja.objectsController.getEnumerableProperties(this._bindingArgs.sourceObject, true); +// arrProperties.forEach(function(obj) { +// var objBound = false; +// if(this._bindingArgs._boundObjectPropertyPath === obj) { +// objBound = true; +// } +// this.properties.push({"title":obj, "bound": objBound}); +// }.bind(this)); } }, -- cgit v1.2.3