From 28da3c2e76c0234047b9a1b05475f336a1a31185 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 29 Oct 2014 04:38:21 -0400 Subject: [PATCH] feature(util) rm logArray --- lib/client/storage/_github.js | 2 +- lib/util.js | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/client/storage/_github.js b/lib/client/storage/_github.js index afc9e385..1437a5b0 100644 --- a/lib/client/storage/_github.js +++ b/lib/client/storage/_github.js @@ -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(); diff --git a/lib/util.js b/lib/util.js index 77463026..65ad0cde 100644 --- a/lib/util.js +++ b/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