mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
refactored
This commit is contained in:
parent
ebeffdc16e
commit
140a97504f
6 changed files with 29 additions and 17 deletions
|
|
@ -10,7 +10,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
GitHubStore = {};
|
||||
|
||||
/* temporary callback function for work with github */
|
||||
cb = function (err, data){ console.log(err || data);};
|
||||
cb = function (err, data){ Util.log(err || data);};
|
||||
|
||||
/* PRIVATE FUNCTIONS */
|
||||
|
||||
|
|
@ -118,7 +118,6 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
lHost = CloudCommander.HOST,
|
||||
lOptions = {
|
||||
description: 'Uplouded by Cloud Commander from ' + lHost,
|
||||
|
||||
public: true
|
||||
};
|
||||
|
||||
|
|
@ -130,8 +129,8 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
|
||||
lGist.create(lOptions, function(pError, pData){
|
||||
DOM.Images.hideLoad();
|
||||
console.log(pError || pData);
|
||||
console.log(pData && pData.html_url);
|
||||
Util.log(pError || pData);
|
||||
Util.log(pData && pData.html_url);
|
||||
|
||||
Util.exec(pCallBack);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue