refactored

This commit is contained in:
coderaiser 2013-01-10 09:52:19 -05:00
parent 701fefa632
commit c4fd5bc1f5
10 changed files with 74 additions and 85 deletions

View file

@ -1,11 +1,10 @@
var CloudCommander, Util, DOM, $, Github, cb;
/* module for work with github */
(function(){
(function(CloudCmd, Util, DOM){
"use strict";
var cloudcmd = CloudCommander,
Cache = DOM.Cache,
var Cache = DOM.Cache,
APIURL,
AuthURL,
@ -42,7 +41,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
}
function setConfig(pCallBack){
cloudcmd.getConfig(function(pConfig){
CloudCmd.getConfig(function(pConfig){
GitHub_ID = pConfig.github_key;
APIURL = pConfig.api_url;
AuthURL = APIURL + '/auth';
@ -182,5 +181,5 @@ var CloudCommander, Util, DOM, $, Github, cb;
};
};
cloudcmd.GitHub = GitHubStore;
})();
CloudCmd.GitHub = GitHubStore;
})(CloudCommander, Util, DOM);