correct syntax errors in core scripts
This commit is contained in:
7
graph.ce
7
graph.ce
@@ -143,6 +143,9 @@ arrfor(roots, function(root) {
|
||||
})
|
||||
|
||||
// Output based on format
|
||||
var children = null
|
||||
var j = 0
|
||||
var output = null
|
||||
if (format == 'tree') {
|
||||
function print_tree(locator, prefix, is_last, visited) {
|
||||
var node = null
|
||||
@@ -178,8 +181,6 @@ if (format == 'tree') {
|
||||
}
|
||||
}
|
||||
|
||||
var children = null
|
||||
var j = 0
|
||||
for (i = 0; i < length(roots); i++) {
|
||||
log.console(roots[i])
|
||||
|
||||
@@ -230,7 +231,7 @@ if (format == 'tree') {
|
||||
log.console("}")
|
||||
|
||||
} else if (format == 'json') {
|
||||
var output = {
|
||||
output = {
|
||||
nodes: [],
|
||||
edges: []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user