added hasOwnProperty check to avoid warnings

This commit is contained in:
Artemy Tregubenko
2014-01-09 15:20:05 +01:00
parent 03cf94ebe8
commit f6203bd5a8

View File

@@ -114,7 +114,9 @@ exports.minify = function(files, options) {
});
if (options.sourceMapIncludeSources) {
for (var file in sourcesContent) {
options.source_map.get().setSourceContent(file, sourcesContent[file]);
if (sourcesContent.hasOwnProperty(file)) {
options.source_map.get().setSourceContent(file, sourcesContent[file]);
}
}
}