From 11c24377cb08a3dc117a32fb322c1d66c94048b3 Mon Sep 17 00:00:00 2001 From: James Allen Date: Mon, 31 Oct 2016 16:57:29 +0000 Subject: [PATCH] fix JSONstringifyWithCycles --- .../ide/editor/directives/aceEditor/undo/UndoManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee index 40f1ba7c82..de6c273c08 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee @@ -237,7 +237,7 @@ define [ seen = [] return JSON.stringify o, (k,v) -> if (typeof v == 'object') - if ( !seen.indexOf(v) ) + if ( seen.indexOf(v) >= 0 ) return '__cycle__' seen.push(v); return v