aboutsummaryrefslogtreecommitdiff
path: root/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js')
-rwxr-xr-xjs/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js48
1 files changed, 47 insertions, 1 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..78189415 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
@@ -12,7 +12,53 @@ var Montage = require("montage/core/core").Montage,
12 Component = require("montage/ui/component").Component; 12 Component = require("montage/ui/component").Component;
13 13
14exports.BindingHudOption = Montage.create(Component, { 14exports.BindingHudOption = Montage.create(Component, {
15 _title: {
16 value: null
17 },
18
15 title: { 19 title: {
16 value: "value" 20 get: function() {
21 return this._title;
22 },
23 set: function(val) {
24 this._title = val;
25 this.needsDraw = true;
26 }
27 },
28
29 bound: {
30 value: false
31 },
32
33 _hudOptions: {
34 value: []
35 },
36
37 hudOptions: {
38 get: function() {
39 return this._hudOptions;
40 },
41 set: function(val) {
42 this._hudOptions = val;
43 this.title = val.title;
44 this.bound = val.bound;
45 this.needsDraw = true;
46 }
47 },
48
49 draw: {
50 value:function() {
51 if(this.bound) {
52 console.log(this.title);
53 this.element.classList.add("bound");
54 } else {
55 this.element.classList.remove("bound");
56 }
57// if(this.bindings.length > 0) {
58// this.element.classList.add("bound");
59// } else {
60// this.element.classList.remove("bound");
61// }
62 }
17 } 63 }
18}); \ No newline at end of file 64}); \ No newline at end of file