bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-07-07 20:37:46 +03:00
parent c56d8e1caf
commit fe73561b5d
2 changed files with 10 additions and 8 deletions

View File

@ -1037,14 +1037,16 @@ var FeatureSetProto = {
var graph = '' var graph = ''
graph += 'digraph ImageGrid {\n' graph += 'digraph ImageGrid {\n'
lst.forEach(function(f){ lst
var deps = dep[f] || [] .filter(function(f){ return f in dep })
.forEach(function(f){
var deps = dep[f].depends || []
deps.length > 0 ? deps.length > 0 ?
deps.forEach(function(d){ deps.forEach(function(d){
graph += `\t"${f}" -> "${d}";\n` }) graph += `\t"${f}" -> "${d}";\n` })
: (graph += `\t"${f}";\n`) : (graph += `\t"${f}";\n`)
}) })
graph += '}' graph += '}'
return graph return graph

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-features", "name": "ig-features",
"version": "3.2.3", "version": "3.2.4",
"description": "", "description": "",
"main": "features.js", "main": "features.js",
"scripts": { "scripts": {