diff options
author | Artemy Tregubenko <me@arty.name> | 2014-01-09 15:20:05 +0100 |
---|---|---|
committer | Artemy Tregubenko <me@arty.name> | 2014-01-09 15:20:05 +0100 |
commit | f6203bd5a8063a3af835603ce1959310f14f7f5e (patch) | |
tree | 7c42a51937f685ea1d2603815672590389dc394a /tools | |
parent | 03cf94ebe8b7bc87eccde800705beabf012ff275 (diff) | |
download | tracifyjs-f6203bd5a8063a3af835603ce1959310f14f7f5e.tar.gz tracifyjs-f6203bd5a8063a3af835603ce1959310f14f7f5e.zip |
added hasOwnProperty check to avoid warnings
Diffstat (limited to 'tools')
-rw-r--r-- | tools/node.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/node.js b/tools/node.js index 4dfa9338..bef296ea 100644 --- a/tools/node.js +++ b/tools/node.js @@ -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]); + } } } |