mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
feature(util) init Util only if it is not present in global scrope
This commit is contained in:
parent
fa42c9a1ea
commit
ae37b43632
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue