From 2681bcfa43cd8e91d346bb5113ffbc5a4752c7cc Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 18 Feb 2013 09:01:15 -0500 Subject: [PATCH] minor changes --- html/auth/github.html | 16 ++++++++-------- json/config.json | 2 +- lib/client/storage/_dropbox.js | 4 ++-- lib/server/auth.js | 2 +- lib/util.js | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/html/auth/github.html b/html/auth/github.html index 8a2e8a1e..e95eb1fd 100644 --- a/html/auth/github.html +++ b/html/auth/github.html @@ -2,17 +2,17 @@ - \ No newline at end of file diff --git a/json/config.json b/json/config.json index 609d9776..e53c7ca4 100644 --- a/json/config.json +++ b/json/config.json @@ -2,7 +2,7 @@ "api_url" : "/api/v1", "appcache" : false, "minification" : { - "js" : false, + "js" : true, "css" : true, "html" : true, "img" : true diff --git a/lib/client/storage/_dropbox.js b/lib/client/storage/_dropbox.js index 001a1759..eefd8262 100644 --- a/lib/client/storage/_dropbox.js +++ b/lib/client/storage/_dropbox.js @@ -51,8 +51,8 @@ var CloudCommander, Util, DOM, Dropbox, cb, Client; DropBoxStore.login = function(pCallBack){ CloudCmd.getModules(function(pModules){ var lStorage = Util.findObjByNameInArr(pModules, 'storage'), - lDropBox = Util.findObjByNameInArr(lStorage.data, 'DropBox'), - lDropBoxKey = lDropBox && lDropBox.data.encodedKey; + lDropBox = Util.findObjByNameInArr(lStorage, 'DropBox'), + lDropBoxKey = lDropBox && lDropBox.encodedKey; Client = new Dropbox.Client({ key: lDropBoxKey diff --git a/lib/server/auth.js b/lib/server/auth.js index 02b03f54..efaa622f 100644 --- a/lib/server/auth.js +++ b/lib/server/auth.js @@ -49,7 +49,7 @@ function authenticate(pCode, pCallBack) { var lStorage = Util.findObjByNameInArr(Modules, 'storage'), - lGitHub = Util.findObjByNameInArr(lStorage.data, 'GitHub'), + lGitHub = Util.findObjByNameInArr(lStorage, 'GitHub'), lId = lGitHub && lGitHub.key, lSecret = lGitHub && lGitHub.secret, diff --git a/lib/util.js b/lib/util.js index 2f819bd5..1fc50240 100644 --- a/lib/util.js +++ b/lib/util.js @@ -731,7 +731,7 @@ Util = exports || {}; for(var i = 0, n = pArr.length; i < n; i++ ) if(pArr[i].name === pObjName) break; - lRet = pArr[i]; + lRet = pArr[i].data; } return lRet;