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
|
// export to module.exports or window
|
||||||
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
|
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
|
||||||
module.exports.S2 = S2;
|
module.exports.S2 = S2;
|
||||||
|
if (!module.exports.L) {
|
||||||
module.exports.L = L;
|
module.exports.L = L;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
global.S2 = S2;
|
global.S2 = S2;
|
||||||
|
if (!global.L) {
|
||||||
global.L = L;
|
global.L = L;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
})(this);
|
})(this);
|
||||||
|
|
Loading…
Reference in New Issue