Commit 0047f4ea 0047f4ea225903c0b492dcf94cab3640b752d403 by Nicolas Perriault

added a new 'location.changed' event

1 parent 174c8142
...@@ -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) {
......