mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 00:50:59 +00:00
feature(util) rm logArray
This commit is contained in:
parent
dd3c3ac441
commit
28da3c2e76
2 changed files with 1 additions and 16 deletions
|
|
@ -149,7 +149,7 @@ var CloudCmd, Util, join, DOM, CloudFunc, Github, cb;
|
|||
if (error)
|
||||
Util.log(error);
|
||||
else
|
||||
Util.logArray([data, data.html_url]);
|
||||
Util.log(data, data.html_url);
|
||||
|
||||
Util.exec(callback);
|
||||
DOM.Images.hide();
|
||||
|
|
|
|||
15
lib/util.js
15
lib/util.js
|
|
@ -255,21 +255,6 @@
|
|||
return args.join(' ');
|
||||
};
|
||||
|
||||
/**
|
||||
* log array of elements
|
||||
* @param array
|
||||
*/
|
||||
this.logArray = function(array) {
|
||||
var isArray = Util.type.array(array);
|
||||
|
||||
if (isArray)
|
||||
array.forEach(function(item) {
|
||||
Util.log(item);
|
||||
});
|
||||
|
||||
return array;
|
||||
};
|
||||
|
||||
/**
|
||||
* function log pArg if it's not empty
|
||||
* @param pArg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue