diff --git a/features.js b/features.js index 54e6b1b..013fbe2 100755 --- a/features.js +++ b/features.js @@ -1037,14 +1037,16 @@ var FeatureSetProto = { var graph = '' graph += 'digraph ImageGrid {\n' - lst.forEach(function(f){ - var deps = dep[f] || [] + lst + .filter(function(f){ return f in dep }) + .forEach(function(f){ + var deps = dep[f].depends || [] - deps.length > 0 ? - deps.forEach(function(d){ - graph += `\t"${f}" -> "${d}";\n` }) - : (graph += `\t"${f}";\n`) - }) + deps.length > 0 ? + deps.forEach(function(d){ + graph += `\t"${f}" -> "${d}";\n` }) + : (graph += `\t"${f}";\n`) + }) graph += '}' return graph diff --git a/package.json b/package.json index ee384b5..1f75993 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-features", - "version": "3.2.3", + "version": "3.2.4", "description": "", "main": "features.js", "scripts": {