Last 2 params need to be applied to function

This commit is contained in:
Matt Pass
2014-10-18 20:54:47 +01:00
parent 15eba478ac
commit ed08585867

View File

@@ -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<changeObj.from.line+changeObj.text.length; i++) {
top.ICEcoder.content.contentWindow.CodeMirror.doFold(thisCM.getLine(i).indexOf("{")>-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<thisCM.getCursor().line; i++) {
top.ICEcoder.content.contentWindow.CodeMirror.doFold(thisCM.getLine(i).indexOf("{")>-1 ? "brace" : "xml" ,null ,"+" ,"-", true, thisCM, i);
top.ICEcoder.content.contentWindow.CodeMirror.doFold(thisCM.getLine(i).indexOf("{")>-1 ? "brace" : "xml" ,null ,"+" ,"-", true)(thisCM, i);
}
}
}