Commit ed11b8d0 ed11b8d0ab0214a579d08362f15246b7dbc062f5 by Nicolas Perriault

Merge pull request #332 from mirlord/master

Fixed: onPageInitialized callback
2 parents f7110def 9842c831
...@@ -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 };
......