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
f04ed9f6
...
f04ed9f625aa41058062ce7a81a32cfaced9109d
authored
2012-12-22 14:01:11 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed `page.initialized` event didn't get the initialized `WebPage` instance
1 parent
5ec02c91
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
CHANGELOG.md
modules/casper.js
CHANGELOG.md
View file @
f04ed9f
...
...
@@ -4,6 +4,7 @@ CasperJS Changelog
XXXX-XX-XX, v1.0.0
------------------
-
fixed
`page.initialized`
event didn't get the initialized
`WebPage`
instance
-
fixed a bug preventing
`Casper.options.onPageInitialized()`
from being called
-
fixed
[
#215
](
https://github.com/n1k0/casperjs/issues/215
)
- fixed broken
`--fail-fast`
option creating an endless loop on error
-
fixed
`Tester.renderFailureDetails()`
which couldn't print failure details correctly in certain circumstances
...
...
modules/casper.js
View file @
f04ed9f
...
...
@@ -2014,7 +2014,7 @@ function createPage(casper) {
casper
.
emit
(
'page.error'
,
msg
,
trace
);
};
page
.
onInitialized
=
function
onInitialized
()
{
casper
.
emit
(
'page.initialized'
,
this
);
casper
.
emit
(
'page.initialized'
,
page
);
if
(
utils
.
isFunction
(
casper
.
options
.
onPageInitialized
))
{
casper
.
log
(
"Post-configuring WebPage instance"
,
"debug"
);
casper
.
options
.
onPageInitialized
.
call
(
casper
,
page
);
...
...
Please
register
or
sign in
to post a comment