Prefer += operator for strings concatenation to String#concat

This commit is contained in:
Slava Kim
2014-06-16 19:22:10 -07:00
parent 36004dc435
commit f6084927f9

View File

@@ -1147,7 +1147,8 @@ _.extend(JsImage.prototype, {
};
if (item.sourceMap) {
// Reference the source map in the source. Looked up later by node-inspector.
// Reference the source map in the source. Looked up later by
// node-inspector.
var sourceMapBaseName = item.targetPath + ".map";
// Write the source map.
@@ -1157,7 +1158,7 @@ _.extend(JsImage.prototype, {
);
var sourceMapFileName = path.basename(loadItem.sourceMap);
item.source = item.source.concat("\n//# sourceMappingURL=" + sourceMapFileName + "\n");
item.source += "\n//# sourceMappingURL=" + sourceMapFileName + "\n";
loadItem.sourceMapRoot = item.sourceMapRoot;
}