From cf3abc7d6c6fb943fd8dd7a15a3d211a3cb51fd2 Mon Sep 17 00:00:00 2001 From: Mattia Gheda Date: Wed, 30 Mar 2016 17:21:50 -0700 Subject: [PATCH] getDestFilePath is called on Filter and not subclasses this avoids a bug where a subclass implementation has side-effect e.g. broccoli assets rev --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3e4ec5a..d813304 100644 --- a/index.js +++ b/index.js @@ -73,7 +73,7 @@ Filter.prototype.build = function() { var operation = patch[0]; var relativePath = patch[1]; var entry = patch[2]; - var outputPath = destDir + '/' + (this.getDestFilePath(relativePath) || relativePath); + var outputPath = destDir + '/' + (Filter.prototype.getDestFilePath.call(this, relativePath) || relativePath); var outputFilePath = outputPath; this._debug('[operation:%s] %s', operation, relativePath);