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) {
page.onInitialized = function onInitialized() {
casper.emit('page.initialized', this);
if (utils.isFunction(casper.options.onPageInitialized)) {
this.log("Post-configuring WebPage instance", "debug");
casper.log("Post-configuring WebPage instance", "debug");
casper.options.onPageInitialized.call(casper, page);
}
};
......