From b85b2a86bf8e1be688cddb18d3f6b3f1ddc94a32 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 19 Apr 2013 09:10:32 -0400 Subject: [PATCH] improved module cloudfunc --- ChangeLog | 2 ++ ChangeLog.rus.md | 1 + json/config.json | 2 +- lib/cloudfunc.js | 9 ++++----- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7154acfa..1aa849ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -81,6 +81,8 @@ is pressed and current file is directory. * Updated jquery to v2.0.0. +* Improved CloudFunc module. + 2012.03.01, Version 0.1.9 diff --git a/ChangeLog.rus.md b/ChangeLog.rus.md index 7c741688..e5eddfb8 100644 --- a/ChangeLog.rus.md +++ b/ChangeLog.rus.md @@ -51,6 +51,7 @@ - Переименована функция promptNewFolder -> promptNewDir. - Добавлена функция getSelectedNames. - Удален модуль Сache. +- Оптимизирован модуль CloudFunc. 2012.03.01, 0.1.9 =============== diff --git a/json/config.json b/json/config.json index 3a8b6f66..5f9fc6cf 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/cloudfunc.js b/lib/cloudfunc.js index c28903a6..52d5bda5 100644 --- a/lib/cloudfunc.js +++ b/lib/cloudfunc.js @@ -1,6 +1,6 @@ -var CloudFunc, exports, Util; +var Util, exports, CloudFunc = {}; -(function(){ +(function(Util, CloudFunc, exports){ 'use strict'; /** @@ -21,8 +21,7 @@ var CloudFunc, exports, Util; Util = global.cloudcmd.main.util; CloudFunc = exports; } - else - CloudFunc = {}; + /* Путь с которым мы сейчас работаем */ CloudFunc.Path = ''; @@ -365,4 +364,4 @@ var CloudFunc, exports, Util; return lFileTable; }; -})(); \ No newline at end of file +})(Util, CloudFunc, exports); \ No newline at end of file