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) {
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);
}
};
......