From 4461463d9d627992350b91d9e28b6547328f58ac Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 24 Jul 2015 08:16:20 -0400 Subject: [PATCH] refactor(cloudfunc) rm Util --- lib/cloudfunc.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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);