added WebPage param to 'page.initialized' event
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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); | ... | ... |
-
Please register or sign in to post a comment