From da579676268788053e2e5d8e600df44ac9c61b18 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 12 Nov 2012 14:57:48 +0200 Subject: [PATCH] changed Util calls to DOM, when needed --- lib/client/storage/_github.js | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/lib/client/storage/_github.js b/lib/client/storage/_github.js index b6cdff1c..81ee8aca 100644 --- a/lib/client/storage/_github.js +++ b/lib/client/storage/_github.js @@ -1,7 +1,5 @@ -var CloudCommander, $; - -var CloudCommander, Github; -/* object contains terminal jqconsole */ +var CloudCommander, $, Github; +/* module for work with github */ (function(){ "use strict"; @@ -10,11 +8,10 @@ var CloudCommander, Github; Util = cloudcmd.Util, CLIENT_ID = '891c251b925e4e967fa9', - CLIENT_SECRET = 'afe9bed1e810c5dc44c4c2a953fc6efb1e5b0545'; + CLIENT_SECRET = 'afe9bed1e810c5dc44c4c2a953fc6efb1e5b0545', + GithubStore = {}; cloudcmd.Storage = {}; - - var GithubStore = {}; /* PRIVATE FUNCTIONS */ @@ -25,14 +22,14 @@ var CloudCommander, Github; console.time('github load'); var lDir = './lib/client/storage/github/'; - Util.anyLoadOnLoad([ + DOM.anyLoadOnLoad([ lDir + 'github.js', lDir + 'lib/base64.js', lDir + 'lib/underscore.js'], function(){ console.timeEnd('github load'); - Util.Images.hideLoad(); + DOM.Images.hideLoad(); init(); }); } @@ -89,9 +86,8 @@ var CloudCommander, Github; }; cloudcmd.Storage.Keys = function(){ - Util.jqueryLoad( load ); + DOM.jqueryLoad( load ); }; - cloudcmd.Storage.Github = GithubStore; - -})(); \ No newline at end of file + cloudcmd.Storage.Github = GithubStore; +})();