From ed085858678a2a293c51ef87955a034fde84f939 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 18 Oct 2014 20:54:47 +0100 Subject: [PATCH] Last 2 params need to be applied to function --- lib/ice-coder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 937aa1f..55749cd 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -281,13 +281,13 @@ var ICEcoder = { filename = filepath.substr(filepath.lastIndexOf("/")+1); fileExt = filename.substr(filename.lastIndexOf(".")+1); for (var i=changeObj.from.line; i-1 ? "brace" : "xml" ,null ,"+" ,"-", true, thisCM, i); + top.ICEcoder.content.contentWindow.CodeMirror.doFold(thisCM.getLine(i).indexOf("{")>-1 ? "brace" : "xml" ,null ,"+" ,"-", true)(thisCM, i); } if (changeObj.text[0] == "}" || changeObj.removed && changeObj.removed[0] == "}") { cursor = thisCM.getSearchCursor("{",thisCM.getCursor(),false); cursor.findPrevious(); for (var i=cursor.from().line; i-1 ? "brace" : "xml" ,null ,"+" ,"-", true, thisCM, i); + top.ICEcoder.content.contentWindow.CodeMirror.doFold(thisCM.getLine(i).indexOf("{")>-1 ? "brace" : "xml" ,null ,"+" ,"-", true)(thisCM, i); } } }