refactor(cloudfunc) rm comments and old description

This commit is contained in:
coderaiser 2014-05-21 06:39:56 -04:00
parent 88fc82be86
commit 297d6046e2

View file

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