mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-12 12:41:04 +00:00
Update corejs-build-20210810.js
This commit is contained in:
parent
69a654680e
commit
9c024cf5e1
|
@ -2199,10 +2199,15 @@ var NullProtoObject = function () {
|
||||||
try {
|
try {
|
||||||
activeXDocument = new ActiveXObject('htmlfile');
|
activeXDocument = new ActiveXObject('htmlfile');
|
||||||
} catch (error) { /* ignore */ }
|
} catch (error) { /* ignore */ }
|
||||||
NullProtoObject = document.domain && activeXDocument ?
|
if (activeXDocument) {
|
||||||
NullProtoObjectViaActiveX(activeXDocument) : // old IE
|
if (typeof(document) !== 'undefined') {
|
||||||
NullProtoObjectViaIFrame() ||
|
NullProtoObject = document.domain ?
|
||||||
NullProtoObjectViaActiveX(activeXDocument); // WSH
|
NullProtoObjectViaActiveX(activeXDocument) : // old IE
|
||||||
|
NullProtoObjectViaIFrame();
|
||||||
|
} else {
|
||||||
|
NullProtoObject = NullProtoObjectViaActiveX(activeXDocument); // WSH
|
||||||
|
}
|
||||||
|
}
|
||||||
var length = enumBugKeys.length;
|
var length = enumBugKeys.length;
|
||||||
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
||||||
return NullProtoObject();
|
return NullProtoObject();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user