Don't overwrite L if it exists in export scope
This makes the module.exports fix more inline with previous behavior.
这个提交包含在:
父节点
8aa84ebf93
当前提交
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;
|
||||
module.exports.L = L;
|
||||
if (!module.exports.L) {
|
||||
module.exports.L = L;
|
||||
}
|
||||
}
|
||||
else {
|
||||
global.S2 = S2;
|
||||
global.L = L;
|
||||
if (!global.L) {
|
||||
global.L = L;
|
||||
}
|
||||
}
|
||||
|
||||
})(this);
|
||||
|
||||
正在加载...
x
在新工单中引用
屏蔽一个用户