mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fix JSONstringifyWithCycles
This commit is contained in:
parent
c2eb49845f
commit
11c24377cb
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ define [
|
||||||
seen = []
|
seen = []
|
||||||
return JSON.stringify o, (k,v) ->
|
return JSON.stringify o, (k,v) ->
|
||||||
if (typeof v == 'object')
|
if (typeof v == 'object')
|
||||||
if ( !seen.indexOf(v) )
|
if ( seen.indexOf(v) >= 0 )
|
||||||
return '__cycle__'
|
return '__cycle__'
|
||||||
seen.push(v);
|
seen.push(v);
|
||||||
return v
|
return v
|
||||||
|
|
Loading…
Reference in a new issue