refactor(client) add CloudFunc

This commit is contained in:
coderaiser 2014-01-03 16:37:23 +00:00
parent e8844b10d2
commit e549d762ef

View file

@ -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);