Fix a bug with Prototype Enumerable

This commit is contained in:
Amauri CHAMPEAUX 2018-12-04 15:52:18 +01:00 committed by GitHub
parent e8ceda8c81
commit 10b8db89bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -900,7 +900,7 @@ var tarteaucitron = {
allDivs = main.childNodes;
if (typeof Array.prototype.map === 'function') {
if (typeof Array.prototype.map === 'function' && typeof Enumerable.each !== 'function') {
Array.prototype.map.call(main.children, Object).sort(function (a, b) {
//var mainChildren = Array.from(main.children);
//mainChildren.sort(function (a, b) {