1 var global = require('../internals/global');
2 var DOMIterables = require('../internals/dom-iterables');
3 var DOMTokenListPrototype = require('../internals/dom-token-list-prototype');
4 var forEach = require('../internals/array-for-each');
5 var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
7 var handlePrototype = function (CollectionPrototype) {
8 // some Chrome versions have non-configurable methods on DOMTokenList
9 if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
10 createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
12 CollectionPrototype.forEach = forEach;
16 for (var COLLECTION_NAME in DOMIterables) {
17 if (DOMIterables[COLLECTION_NAME]) {
18 handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);
22 handlePrototype(DOMTokenListPrototype);