From 940b6e6418dc0a275d99bf3459e23184c9317741 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 3 Jan 2013 09:50:07 -0500 Subject: [PATCH] improved scripts compression --- config.json | 2 +- lib/client/google_analytics.js | 7 ++++--- lib/client/ie.js | 10 +++++----- lib/client/keyBinding.js | 5 +++-- lib/client/menu.js | 6 +++--- lib/client/socket.js | 4 ++-- lib/client/terminal.js | 7 ++++--- lib/client/viewer.js | 7 ++++--- 8 files changed, 26 insertions(+), 22 deletions(-) diff --git a/config.json b/config.json index 270056fa..a0a1012c 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,7 @@ "appcache" : false, "cache" : {"allowed" : false}, "minification" : { - "js" : true, + "js" : false, "css" : true, "html" : true, "img" : true diff --git a/lib/client/google_analytics.js b/lib/client/google_analytics.js index 9e07312e..ba3d0d85 100644 --- a/lib/client/google_analytics.js +++ b/lib/client/google_analytics.js @@ -1,6 +1,6 @@ var DOM, _gaq; -(function(){ - "use strict"; +(function(DOM, _gaq){ + 'use strict'; /* setting google analitics tracking code */ _gaq = [['_setAccount', 'UA-33536569-2'], ['_trackPageview']]; @@ -20,4 +20,5 @@ var DOM, _gaq; }; DOM.jsload('http://google-analytics.com/ga.js'); -})(); \ No newline at end of file + +})(DOM, _gaq); \ No newline at end of file diff --git a/lib/client/ie.js b/lib/client/ie.js index bf9e0488..fb18acee 100644 --- a/lib/client/ie.js +++ b/lib/client/ie.js @@ -12,13 +12,13 @@ var Util, DOM, $; {name: '', src: ' ',func: '', style: '', id: '', parent: '', async: false, inner: 'id{color:red, }, class:'', not_append: false} */ - DOM.cssSet = function(pParams_o){ + DOM.cssSet = function(pParams_o){ var lElement = '