From ae37b43632a3ad63ec270a65285d4c892b9e8fce Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 4 Nov 2014 06:46:08 -0500 Subject: [PATCH] feature(util) init Util only if it is not present in global scrope --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index acfb17b6..02e6af00 100644 --- a/lib/util.js +++ b/lib/util.js @@ -5,7 +5,7 @@ if (typeof module === 'object' && module.exports) module.exports = new UtilProto(); - else + else if (!Scope.Util) Scope.Util = new UtilProto(); function UtilProto() {