Commit d87bedd6 d87bedd64dce08d8f793c3a39b1eac95c67697f0 by Nicolas Perriault

added WebPage param to 'page.initialized' event

1 parent b74654dd
......@@ -877,7 +877,7 @@ Casper.prototype.start = function(location, then) {
}
}, this.options.timeout, this);
}
this.emit('page.initialized');
this.emit('page.initialized', this);
if (utils.isFunction(this.options.onPageInitialized)) {
this.log("Post-configuring WebPage instance", "debug");
this.options.onPageInitialized.call(this, this.page);
......