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