Merge pull request #332 from mirlord/master
Fixed: onPageInitialized callback
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -2016,7 +2016,7 @@ function createPage(casper) { | ... | @@ -2016,7 +2016,7 @@ function createPage(casper) { |
2016 | page.onInitialized = function onInitialized() { | 2016 | page.onInitialized = function onInitialized() { |
2017 | casper.emit('page.initialized', this); | 2017 | casper.emit('page.initialized', this); |
2018 | if (utils.isFunction(casper.options.onPageInitialized)) { | 2018 | if (utils.isFunction(casper.options.onPageInitialized)) { |
2019 | this.log("Post-configuring WebPage instance", "debug"); | 2019 | casper.log("Post-configuring WebPage instance", "debug"); |
2020 | casper.options.onPageInitialized.call(casper, page); | 2020 | casper.options.onPageInitialized.call(casper, page); |
2021 | } | 2021 | } |
2022 | }; | 2022 | }; | ... | ... |
-
Please register or sign in to post a comment