Don't overwrite L if it exists in export scope
This makes the module.exports fix more inline with previous behavior.
This commit is contained in:
parent
8aa84ebf93
commit
4e631500ea
|
@ -525,11 +525,15 @@ var L = (function () {
|
|||
// export to module.exports or window
|
||||
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
|
||||
module.exports.S2 = S2;
|
||||
if (!module.exports.L) {
|
||||
module.exports.L = L;
|
||||
}
|
||||
}
|
||||
else {
|
||||
global.S2 = S2;
|
||||
if (!global.L) {
|
||||
global.L = L;
|
||||
}
|
||||
}
|
||||
|
||||
})(this);
|
||||
|
|
Loading…
Reference in New Issue