remove listeners when using the build flag

, fixes #176
This commit is contained in:
Luke Page 2014-10-20 09:14:21 +01:00
parent c063f68da9
commit e4bb889ea4

View File

@ -100,7 +100,10 @@ module.exports = function(grunt) {
} }
// If we're just building (e.g. for web), skip phantom. // 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(); var done = this.async();
phantomRunner(options, function(err, status) { phantomRunner(options, function(err, status) {