diff options
author | Eric Guzman | 2012-06-14 17:06:50 -0700 |
---|---|---|
committer | Eric Guzman | 2012-06-14 17:06:50 -0700 |
commit | fc0a4de30ab8556739acb10287da100f28bcad12 (patch) | |
tree | 57ee0bd85f89d8b9c880337e14224536690810a4 /js/stage/binding-view.reel/binding-hud.reel | |
parent | 62c7c2ac7b72c7e89611d064eef1f4f77a54696d (diff) | |
parent | 60e9ea67e0f6d0cf167b6d5068e2e01db5f67966 (diff) | |
download | ninja-fc0a4de30ab8556739acb10287da100f28bcad12.tar.gz |
Merge branch 'binding' of github.com:dhg637/ninja-internal into binding
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 | 5 |
1 files changed, 3 insertions, 2 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 5053d3bb..4260a66c 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 | |||
@@ -62,6 +62,7 @@ exports.BindingHud = Montage.create(Component, { | |||
62 | this.x = parseInt(this.x); | 62 | this.x = parseInt(this.x); |
63 | this.y = parseInt(this.y); | 63 | this.y = parseInt(this.y); |
64 | this.needsDraw = true; | 64 | this.needsDraw = true; |
65 | this.parentComponent.parentComponent.needsDraw = true; | ||
65 | } | 66 | } |
66 | }, | 67 | }, |
67 | 68 | ||
@@ -70,6 +71,7 @@ exports.BindingHud = Montage.create(Component, { | |||
70 | this._resizedY = e._event.dY; | 71 | this._resizedY = e._event.dY; |
71 | this._resizedX = e._event.dX; | 72 | this._resizedX = e._event.dX; |
72 | this.needsDraw = true; | 73 | this.needsDraw = true; |
74 | this.parentComponent.parentComponent.needsDraw = true; | ||
73 | } | 75 | } |
74 | }, | 76 | }, |
75 | 77 | ||
@@ -81,6 +83,7 @@ exports.BindingHud = Montage.create(Component, { | |||
81 | this._resizedY = 0; | 83 | this._resizedY = 0; |
82 | this.isResizing = false; | 84 | this.isResizing = false; |
83 | this.needsDraw = true; | 85 | this.needsDraw = true; |
86 | this.parentComponent.parentComponent.needsDraw = true; | ||
84 | } | 87 | } |
85 | }, | 88 | }, |
86 | 89 | ||
@@ -98,7 +101,6 @@ exports.BindingHud = Montage.create(Component, { | |||
98 | }, | 101 | }, |
99 | set: function(val) { | 102 | set: function(val) { |
100 | this._x = val; | 103 | this._x = val; |
101 | console.log(this._x); | ||
102 | this.needsDraw = true; | 104 | this.needsDraw = true; |
103 | } | 105 | } |
104 | }, | 106 | }, |
@@ -149,7 +151,6 @@ exports.BindingHud = Montage.create(Component, { | |||
149 | // } | 151 | // } |
150 | this.element.style.top = (this.y + this._resizedY) + "px"; | 152 | this.element.style.top = (this.y + this._resizedY) + "px"; |
151 | this.element.style.left = (this.x + this._resizedX) + "px"; | 153 | this.element.style.left = (this.x + this._resizedX) + "px"; |
152 | console.log("hud",this); | ||
153 | } | 154 | } |
154 | } | 155 | } |
155 | }); \ No newline at end of file | 156 | }); \ No newline at end of file |