mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
refactor(cloudfunc) rm comments and old description
This commit is contained in:
parent
88fc82be86
commit
297d6046e2
1 changed files with 5 additions and 19 deletions
|
|
@ -3,26 +3,12 @@ var Util;
|
|||
(function(scope, Util) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Модуль, содержащий функции, которые
|
||||
* будут работать и на клиенте и на сервере
|
||||
*/
|
||||
|
||||
if (scope.window) {
|
||||
scope.CloudFunc = new CloudFuncProto(Util);
|
||||
} else {
|
||||
if (!global.cloudcmd)
|
||||
return console.log(
|
||||
'# cloudfunc.js' + '\n' +
|
||||
'# -----------' + '\n' +
|
||||
'# Module is part of Cloud Commander,' + '\n' +
|
||||
'# used for generate html from json.' + '\n' +
|
||||
'#' + '\n' +
|
||||
'# http://cloudcmd.io' + '\n');
|
||||
|
||||
Util = global.cloudcmd.main.util;
|
||||
|
||||
|
||||
if (typeof module === 'object' && module.exports) {
|
||||
Util = require('./util');
|
||||
module.exports = new CloudFuncProto(Util);
|
||||
} else {
|
||||
scope.CloudFunc = new CloudFuncProto(Util);
|
||||
}
|
||||
|
||||
function CloudFuncProto(Util) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue