mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
refactored
This commit is contained in:
parent
701fefa632
commit
c4fd5bc1f5
10 changed files with 74 additions and 85 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue