Fix a bug when there is a JS redirection during the run

This commit is contained in:
Gaël Métais
2016-03-23 17:21:26 +02:00
parent 2847e02c5d
commit a00b1a96c7
5 changed files with 5 additions and 5 deletions
@@ -12,7 +12,7 @@ exports.module = function(phantomas) {
phantomas.setMetric('eventsDispatched'); // @desc number of EventTarget.dispatchEvent calls
phantomas.setMetric('eventsScrollBound'); // @desc number of scroll event bounds
phantomas.once('init', function() {
phantomas.on('init', function() {
phantomas.evaluate(function() {
(function(phantomas) {
// spy calls to EventTarget.addEventListener