diff options
author | Armen Kesablyan | 2012-06-02 20:54:30 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-02 20:54:30 -0700 |
commit | 7655e32da5bcdf7b205afc1908c9b7bcc661b0d4 (patch) | |
tree | c5192853a61480a7e2957349a3d5b5021ff0036e /js/stage/binding-view.reel/binding-hud-option.reel | |
parent | 10d97af27fca224752ad04551ca5c41982222d1f (diff) | |
download | ninja-7655e32da5bcdf7b205afc1908c9b7bcc661b0d4.tar.gz |
binding canvas
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/stage/binding-view.reel/binding-hud-option.reel')
-rwxr-xr-x | js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js index 58f4175e..07cbff11 100755 --- a/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js +++ b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js | |||
@@ -14,5 +14,28 @@ var Montage = require("montage/core/core").Montage, | |||
14 | exports.BindingHudOption = Montage.create(Component, { | 14 | exports.BindingHudOption = Montage.create(Component, { |
15 | title: { | 15 | title: { |
16 | value: "value" | 16 | value: "value" |
17 | }, | ||
18 | _bindings: { | ||
19 | value: [] | ||
20 | }, | ||
21 | |||
22 | bindings: { | ||
23 | get: function() { | ||
24 | return this._bindings; | ||
25 | }, | ||
26 | set: function(val) { | ||
27 | this._bindings = val; | ||
28 | this.needsDraw = true; | ||
29 | } | ||
30 | }, | ||
31 | |||
32 | draw: { | ||
33 | value:function() { | ||
34 | if(this.bindings.length > 0) { | ||
35 | this.element.classList.add("bound"); | ||
36 | } else { | ||
37 | this.element.classList.remove("bound"); | ||
38 | } | ||
39 | } | ||
17 | } | 40 | } |
18 | }); \ No newline at end of file | 41 | }); \ No newline at end of file |