added a new 'location.changed' event
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -1306,6 +1306,7 @@ function createPage(casper) { | ... | @@ -1306,6 +1306,7 @@ function createPage(casper) { |
1306 | casper.options.httpStatusHandlers[resource.status].call(casper, casper, resource); | 1306 | casper.options.httpStatusHandlers[resource.status].call(casper, casper, resource); |
1307 | } | 1307 | } |
1308 | casper.currentUrl = resource.url; | 1308 | casper.currentUrl = resource.url; |
1309 | casper.emit('location.changed', resource.url); | ||
1309 | } | 1310 | } |
1310 | }; | 1311 | }; |
1311 | page.onResourceRequested = function(request) { | 1312 | page.onResourceRequested = function(request) { | ... | ... |
-
Please register or sign in to post a comment