Commit 9842c831 9842c8313513ef93772a4fbb8a7a80748c2167ed by Vladimir Chizhov

Fixed: onPageInitialized callback

Incorrect logging was preventing callback invocation.
1 parent f7110def
...@@ -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 };
......