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
8752de4a
...
8752de4a1ecd0596eac0624beec9657282d8e0be
authored
2012-12-18 12:38:22 -0800
by
Tyler Ritchie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixes #327 page.confirm handlers can return true or false
1 parent
73265252
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
modules/casper.js
modules/casper.js
View file @
8752de4
...
...
@@ -1988,7 +1988,8 @@ function createPage(casper) {
}
};
page
.
onConfirm
=
function
onConfirm
(
message
)
{
return
casper
.
filter
(
'page.confirm'
,
message
)
||
true
;
var
listener_exists
=
typeof
capser
.
_filters
[
'page.confirm'
]
!==
'undefined'
;
return
listener_exists
?
casper
.
filter
(
'page.confirm'
,
message
)
:
true
;
};
page
.
onConsoleMessage
=
function
onConsoleMessage
(
msg
)
{
// client utils casper console message
...
...
Please
register
or
sign in
to post a comment