refactored

This commit is contained in:
coderaiser 2013-01-28 09:16:37 -05:00
parent ebeffdc16e
commit 140a97504f
6 changed files with 29 additions and 17 deletions

View file

@ -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);
});