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
29f9b957
...
29f9b9570d0a1f1bed6089de0703107b5911988c
authored
2012-06-21 19:47:34 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixes #154 - firing the change event after a field value has been set
1 parent
3695f3c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
modules/clientutils.js
modules/clientutils.js
View file @
29f9b95
...
...
@@ -558,6 +558,11 @@
out
=
'Unsupported field type: '
+
nodeName
;
break
;
}
// firing the `change` event
var
changeEvent
=
document
.
createEvent
(
"HTMLEvents"
);
changeEvent
.
initEvent
(
'change'
,
true
,
true
);
field
.
dispatchEvent
(
changeEvent
);
// blur the field
try
{
field
.
blur
();
}
catch
(
err
)
{
...
...
Please
register
or
sign in
to post a comment