Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
2eff84b9
...
2eff84b9756a7c097e5a89fa1ac12fd4f3000e49
authored
2012-10-16 17:10:55 -0400
by
Ben Lowery
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix up one use of qsa, verify the length of the returned array when checking for empty.
1 parent
56c4e836
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/clientutils.js
modules/clientutils.js
View file @
2eff84b
...
...
@@ -214,7 +214,7 @@
}
var
field
=
this
.
findAll
(
'[name="'
+
name
+
'"]'
,
form
);
var
value
=
vals
[
name
];
if
(
!
field
)
{
if
(
!
field
||
field
.
length
===
0
)
{
out
.
errors
.
push
(
'no field named "'
+
name
+
'" in form'
);
continue
;
}
...
...
Please
register
or
sign in
to post a comment