feature(client) add getExt

This commit is contained in:
coderaiser 2013-11-20 13:11:08 +00:00
parent 68a12b2f56
commit 2b35b44291

View file

@ -7,7 +7,7 @@ var Util, DOM, CloudFunc, CloudCmd;
(function(Util, DOM) {
'use strict';
var Key, Config, Modules, FileTemplate, PathTemplate, Listeners,
var Key, Config, Modules, Extensions, FileTemplate, PathTemplate, Listeners,
Storage = DOM.Storage;
CloudCmd = {
@ -302,6 +302,7 @@ var Util, DOM, CloudFunc, CloudCmd;
CloudCmd.setConfig = function(config) { Config = config; };
CloudCmd.getConfig = getSystemFile(Config, CloudCmd.JSONDIR + 'config.json');
CloudCmd.getModules = getSystemFile(Modules, CloudCmd.JSONDIR + 'modules.json');
CloudCmd.getExt = getSystemFile(Extensions, CloudCmd.JSONDIR + 'ext.json');
CloudCmd.getFileTemplate = getSystemFile(FileTemplate, CloudCmd.HTMLDIR + 'file.html');
CloudCmd.getPathTemplate = getSystemFile(PathTemplate, CloudCmd.HTMLDIR + 'path.html');