mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
refactor(cloudfunc) rm Util
This commit is contained in:
parent
a7d6974872
commit
4461463d9d
1 changed files with 6 additions and 8 deletions
|
|
@ -1,16 +1,14 @@
|
|||
var Util;
|
||||
|
||||
(function(scope, Util) {
|
||||
(function(global) {
|
||||
'use strict';
|
||||
|
||||
var rendy;
|
||||
|
||||
if (typeof module === 'object' && module.exports) {
|
||||
rendy = require('rendy');
|
||||
module.exports = new CloudFuncProto(Util);
|
||||
rendy = require('rendy');
|
||||
module.exports = new CloudFuncProto();
|
||||
} else {
|
||||
rendy = window.rendy;
|
||||
scope.CloudFunc = new CloudFuncProto(Util);
|
||||
rendy = window.rendy;
|
||||
global.CloudFunc = new CloudFuncProto();
|
||||
}
|
||||
|
||||
function CloudFuncProto() {
|
||||
|
|
@ -255,4 +253,4 @@ var Util;
|
|||
return fileTable;
|
||||
};
|
||||
}
|
||||
})(this, Util);
|
||||
})(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue