From 59a749c5ce2cd56c49bfba890289955f84729869 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Tue, 18 Feb 2014 08:28:54 +0000 Subject: [PATCH] Don't need to work out file name now This was legacy code that made use of the file extension. We now just go by there being a { on the line. --- editor.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/editor.php b/editor.php index 9fdbd83..440bda5 100644 --- a/editor.php +++ b/editor.php @@ -287,8 +287,6 @@ function createNewCMInstance(num) { ); window['cM'+num].on("gutterClick", function(thisCM, line, gutter, clickEvent) { - var filepath = top.ICEcoder.openFiles[top.ICEcoder.selectedTab-1]; - var fileExt = filepath.substr(filepath.lastIndexOf(".")+1); window['cM'+num].getLine(line).indexOf("{")>-1 ? codeFoldBrace(window['cM'+num], line) : codeFoldTag(window['cM'+num], line); }