aboutsummaryrefslogtreecommitdiff
path: root/js/components/combobox.reel/combobox.js
diff options
context:
space:
mode:
authorhwc4872012-02-08 14:47:31 -0800
committerhwc4872012-02-08 14:47:31 -0800
commit468d324f8e9a5f018bc7609b58254ae468075ce9 (patch)
treec55cebc2cefc959251bcaca0fce139b4b1fc0fc7 /js/components/combobox.reel/combobox.js
parentab4b753907bc80a969b0d4104d0b0731597e3bf0 (diff)
parent0537f8f29e7b8dd48fd08f20b1533fbe92a54c4b (diff)
downloadninja-468d324f8e9a5f018bc7609b58254ae468075ce9.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into working
Diffstat (limited to 'js/components/combobox.reel/combobox.js')
-rw-r--r--js/components/combobox.reel/combobox.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/js/components/combobox.reel/combobox.js b/js/components/combobox.reel/combobox.js
index 3200b01c..bc433f52 100644
--- a/js/components/combobox.reel/combobox.js
+++ b/js/components/combobox.reel/combobox.js
@@ -104,6 +104,26 @@ exports.Combobox = Montage.create(Component, {
104 } 104 }
105 }, 105 },
106 106
107 _visible: {
108 enumerable: false,
109 value: true
110 },
111
112 visible: {
113 enumerable: true,
114 serializable: true,
115 get: function() {
116 return this._visible;
117 },
118 set: function(value) {
119 if(value !== this._visible)
120 {
121 this._visible = value;
122 this.needsDraw = true;
123 }
124 }
125 },
126
107 handleChange: 127 handleChange:
108 { 128 {
109 value:function(event) 129 value:function(event)
@@ -158,6 +178,14 @@ exports.Combobox = Montage.create(Component, {
158 this.element.appendChild(optionItem); 178 this.element.appendChild(optionItem);
159 } 179 }
160 this.element.disabled = !this._enabled; 180 this.element.disabled = !this._enabled;
181 if(this._visible)
182 {
183 this.element.style.visibility = "visible";
184 }
185 else
186 {
187 this.element.style.visibility = "hidden";
188 }
161 } 189 }
162 } 190 }
163 }, 191 },