diff --git a/lib/cloudfunc.js b/lib/cloudfunc.js index d035c6a6..b7c64e73 100644 --- a/lib/cloudfunc.js +++ b/lib/cloudfunc.js @@ -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);