aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEric Guzman2012-06-10 16:32:34 -0700
committerEric Guzman2012-06-10 16:32:34 -0700
commite737ce214eb59b552e6c7dd074c4f4d719bb31d4 (patch)
tree9312e2a50ea4bdf1f13b3b7794cba9a616832db5 /js
parentaf1c0007fffa3e9db6d11949a9ddec4bd697ee69 (diff)
downloadninja-e737ce214eb59b552e6c7dd074c4f4d719bb31d4.tar.gz
Hintable - Array type check fix for arrays created with map() method.
Diffstat (limited to 'js')
-rw-r--r--js/components/hintable.reel/hintable.js7
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"