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) { ...@@ -877,7 +877,7 @@ Casper.prototype.start = function(location, then) {
877 } 877 }
878 }, this.options.timeout, this); 878 }, this.options.timeout, this);
879 } 879 }
880 this.emit('page.initialized'); 880 this.emit('page.initialized', this);
881 if (utils.isFunction(this.options.onPageInitialized)) { 881 if (utils.isFunction(this.options.onPageInitialized)) {
882 this.log("Post-configuring WebPage instance", "debug"); 882 this.log("Post-configuring WebPage instance", "debug");
883 this.options.onPageInitialized.call(this, this.page); 883 this.options.onPageInitialized.call(this, this.page);
......