added hasOwnProperty check to avoid warnings
This commit is contained in:
parent
03cf94ebe8
commit
f6203bd5a8
|
|
@ -114,9 +114,11 @@ exports.minify = function(files, options) {
|
|||
});
|
||||
if (options.sourceMapIncludeSources) {
|
||||
for (var file in sourcesContent) {
|
||||
if (sourcesContent.hasOwnProperty(file)) {
|
||||
options.source_map.get().setSourceContent(file, sourcesContent[file]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (options.output) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user