Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9124188
web.dom-collections.for-each.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
887 B
Subscribers
None
web.dom-collections.for-each.js
View Options
var
global
=
require
(
'../internals/global'
);
var
DOMIterables
=
require
(
'../internals/dom-iterables'
);
var
DOMTokenListPrototype
=
require
(
'../internals/dom-token-list-prototype'
);
var
forEach
=
require
(
'../internals/array-for-each'
);
var
createNonEnumerableProperty
=
require
(
'../internals/create-non-enumerable-property'
);
var
handlePrototype
=
function
(
CollectionPrototype
)
{
// some Chrome versions have non-configurable methods on DOMTokenList
if
(
CollectionPrototype
&&
CollectionPrototype
.
forEach
!==
forEach
)
try
{
createNonEnumerableProperty
(
CollectionPrototype
,
'forEach'
,
forEach
);
}
catch
(
error
)
{
CollectionPrototype
.
forEach
=
forEach
;
}
};
for
(
var
COLLECTION_NAME
in
DOMIterables
)
{
if
(
DOMIterables
[
COLLECTION_NAME
])
{
handlePrototype
(
global
[
COLLECTION_NAME
]
&&
global
[
COLLECTION_NAME
].
prototype
);
}
}
handlePrototype
(
DOMTokenListPrototype
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 21, 6:48 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3442185
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment