mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 04:40:05 +02:00
add some packages
This commit is contained in:
19
node_modules/core-js/modules/library/web.dom.iterable.js
generated
vendored
Normal file
19
node_modules/core-js/modules/library/web.dom.iterable.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
require('./es6.array.iterator');
|
||||
var global = require('./_global');
|
||||
var hide = require('./_hide');
|
||||
var Iterators = require('./_iterators');
|
||||
var TO_STRING_TAG = require('./_wks')('toStringTag');
|
||||
|
||||
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
|
||||
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
|
||||
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
|
||||
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
|
||||
'TextTrackList,TouchList').split(',');
|
||||
|
||||
for (var i = 0; i < DOMIterables.length; i++) {
|
||||
var NAME = DOMIterables[i];
|
||||
var Collection = global[NAME];
|
||||
var proto = Collection && Collection.prototype;
|
||||
if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
|
||||
Iterators[NAME] = Iterators.Array;
|
||||
}
|
Reference in New Issue
Block a user