From 13255bc58bcf359ed39cad28617d92825327ced9 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 20 Oct 2012 23:52:36 +0100 Subject: [PATCH] Clearing global vars theme, tabsIndent, openLastFiles, tabWidth, previousFiles, showFileMenu & foldStyle all now contained within ICEcoder object showFileMenu is a function to ensure file manager menu continues to show The few instances of i now have scope Initing the var fileName This is to reduce the number of global vars The only global vars should now be ICEcoder, docRoot & iceRoot --- editor.php | 12 +++++------ index.php | 44 +++++++++++++++++++++-------------------- lib/ice-coder.js | 35 ++++++++++++++++++-------------- lib/settings-screen.php | 4 ++-- 4 files changed, 51 insertions(+), 44 deletions(-) diff --git a/editor.php b/editor.php index 2c2a933..7937322 100644 --- a/editor.php +++ b/editor.php @@ -92,16 +92,16 @@ span.CodeMirror-matchhighlight {background: #555} - +
@@ -77,16 +79,16 @@ showFileMenu = function() {