From e549d762efe4583b6d602b0e824534825630faee Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 3 Jan 2014 16:37:23 +0000 Subject: [PATCH] refactor(client) add CloudFunc --- lib/client.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/client.js b/lib/client.js index 46dddcbf..d6a9a5b7 100644 --- a/lib/client.js +++ b/lib/client.js @@ -2,17 +2,15 @@ * @CloudFunc - обьект содержащий общий функционал * клиентский и серверный */ -var Util, DOM, CloudFunc, CloudCmd; - -(function(scope, Util, DOM) { +(function(scope, Util, DOM, CloudFunc) { 'use strict'; - scope.CloudCmd = new CloudCmdProto(Util, DOM); + scope.CloudCmd = new CloudCmdProto(Util, DOM, CloudFunc); - function CloudCmdProto(Util, DOM) { + function CloudCmdProto(Util, DOM, CloudFunc) { var Key, Config, Modules, Extensions, FileTemplate, PathTemplate, LinkTemplate, Listeners, - CloudCmd = this; + CloudCmd = this, Storage = DOM.Storage; this.LIBDIR = '/lib/'; @@ -489,4 +487,4 @@ var Util, DOM, CloudFunc, CloudCmd; return Util.stringifyJSON(lFileTable); } } -})(this, Util, DOM); +})(this, Util, DOM, CloudFunc);