Commit 2eff84b9 2eff84b9756a7c097e5a89fa1ac12fd4f3000e49 by Ben Lowery

fix up one use of qsa, verify the length of the returned array when checking for empty.

1 parent 56c4e836
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
214 } 214 }
215 var field = this.findAll('[name="' + name + '"]', form); 215 var field = this.findAll('[name="' + name + '"]', form);
216 var value = vals[name]; 216 var value = vals[name];
217 if (!field) { 217 if (!field || field.length === 0) {
218 out.errors.push('no field named "' + name + '" in form'); 218 out.errors.push('no field named "' + name + '" in form');
219 continue; 219 continue;
220 } 220 }
......