Merge pull request #177 from lukeapage/patch-1

remove listeners when using the build flag
This commit is contained in:
Sindre Sorhus 2014-10-20 12:40:53 +02:00
commit 4ff0f80630

View File

@ -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) {