Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
691 bytes
|
Line | |
---|
1 | var global = require('../internals/global');
|
---|
2 | var DOMIterables = require('../internals/dom-iterables');
|
---|
3 | var forEach = require('../internals/array-for-each');
|
---|
4 | var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
---|
5 |
|
---|
6 | for (var COLLECTION_NAME in DOMIterables) {
|
---|
7 | var Collection = global[COLLECTION_NAME];
|
---|
8 | var CollectionPrototype = Collection && Collection.prototype;
|
---|
9 | // some Chrome versions have non-configurable methods on DOMTokenList
|
---|
10 | if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
|
---|
11 | createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
|
---|
12 | } catch (error) {
|
---|
13 | CollectionPrototype.forEach = forEach;
|
---|
14 | }
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.