Skip to content

Commit

Permalink
fixes webpack#316
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jun 17, 2014
1 parent 3050156 commit 3efb715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/EvalSourceMapDevToolModuleTemplatePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ EvalSourceMapDevToolModuleTemplatePlugin.prototype.apply = function(moduleTempla
str = str.split("!");
str = str.pop() + (str.length > 0 ? " " + str.join("!") : "");
var idx;
while((idx = sourceMap.sources.indexOf(str) >= 0) && (idx < i)) {
while((idx = sourceMap.sources.indexOf(str)) && (idx >= 0) && (idx < i)) {
str += "*";
}
sourceMap.sources[i] = str;
Expand Down
2 changes: 1 addition & 1 deletion lib/SourceMapDevToolPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ SourceMapDevToolPlugin.prototype.apply = function(compiler) {
str = str.split("!");
str = str.pop() + (str.length > 0 ? " " + str.join("!") : "");
var idx;
while ((idx = sourceMap.sources.indexOf(str)) && (idx >= 0) && (idx < i)) {
while((idx = sourceMap.sources.indexOf(str)) && (idx >= 0) && (idx < i)) {
str += "*";
}
sourceMap.sources[i] = str;
Expand Down

0 comments on commit 3efb715

Please sign in to comment.