From e4bb889ea40aa6cb4409e55291428a22ffbc5908 Mon Sep 17 00:00:00 2001 From: Luke Page Date: Mon, 20 Oct 2014 09:14:21 +0100 Subject: [PATCH] remove listeners when using the build flag , fixes #176 --- tasks/jasmine.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/jasmine.js b/tasks/jasmine.js index faded76..b81af9e 100644 --- a/tasks/jasmine.js +++ b/tasks/jasmine.js @@ -100,7 +100,10 @@ module.exports = function(grunt) { } // If we're just building (e.g. for web), skip phantom. - if (this.flags.build) return; + if (this.flags.build) { + removePhantomListeners(); + return; + } var done = this.async(); phantomRunner(options, function(err, status) {