diff options
author | Armen Kesablyan | 2012-06-11 10:25:49 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-11 10:25:49 -0700 |
commit | aaac232727c82361771a0804049ada8fae17a549 (patch) | |
tree | cd9110dacb9e39e98a5d8bbd7f1dad2780cbcc1a /js/components/hintable.reel | |
parent | 6a27268ebf1cd5fa7bf8313eb5712fd5f6985758 (diff) | |
parent | dbb36888eda1f25387852ea79aef89d22dfd7799 (diff) | |
download | ninja-aaac232727c82361771a0804049ada8fae17a549.tar.gz |
Merge pull request #11 from ericguzman/binding
Binding
Diffstat (limited to 'js/components/hintable.reel')
-rw-r--r-- | js/components/hintable.reel/hintable.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/components/hintable.reel/hintable.js b/js/components/hintable.reel/hintable.js index 803770db..e16c5f8a 100644 --- a/js/components/hintable.reel/hintable.js +++ b/js/components/hintable.reel/hintable.js | |||
@@ -185,12 +185,12 @@ exports.Hintable = Montage.create(Editable, { | |||
185 | handleInput : { | 185 | handleInput : { |
186 | value : function handleInput(e) { | 186 | value : function handleInput(e) { |
187 | this._super(arguments); | 187 | this._super(arguments); |
188 | 188 | ||
189 | var val = this.value, | 189 | var val = this.value, |
190 | matches, hint; | 190 | matches, hint; |
191 | //console.log('val = "' + val + '"'); | 191 | //console.log('val = "' + val + '"'); |
192 | //// Handle auto-suggest if configured | 192 | //// Handle auto-suggest if configured |
193 | if(this.hints instanceof Array) { | 193 | if(this.hints && this.hints.length) { |
194 | 194 | ||
195 | if(val.length > 0) { // content is not empty | 195 | if(val.length > 0) { // content is not empty |
196 | 196 | ||
@@ -305,7 +305,8 @@ exports.Hintable = Montage.create(Editable, { | |||
305 | 305 | ||
306 | /* --------- CONFIG ---------- */ | 306 | /* --------- CONFIG ---------- */ |
307 | hints : { | 307 | hints : { |
308 | value : ['Testing a hint.', 'Testing another hint.', 'Testing the last hint.'] | 308 | value : ['Testing a hint.', 'Testing another hint.', 'Testing the last hint.'], |
309 | distinct: true | ||
309 | }, | 310 | }, |
310 | hintClass : { | 311 | hintClass : { |
311 | value : "hintable-hint" | 312 | value : "hintable-hint" |