aboutsummaryrefslogtreecommitdiff
path: root/js/stage/binding-view.reel/binding-hud.reel
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-08 11:29:13 -0700
committerArmen Kesablyan2012-06-08 11:29:13 -0700
commit6a27268ebf1cd5fa7bf8313eb5712fd5f6985758 (patch)
tree3f2b11529d8384ee7348152844e723a29a0f2df1 /js/stage/binding-view.reel/binding-hud.reel
parent7e66e84d1ee4d1816c811b8eb6f236f97cf8224b (diff)
downloadninja-6a27268ebf1cd5fa7bf8313eb5712fd5f6985758.tar.gz
Render Hud Multiple
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/stage/binding-view.reel/binding-hud.reel')
-rwxr-xr-xjs/stage/binding-view.reel/binding-hud.reel/binding-hud.js23
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