From 699be0de5c0cd899658fd105f7a36172245529f9 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Tue, 4 Dec 2018 16:59:25 +0100 Subject: [PATCH] Fix a bug with Prototype Enumerable --- tarteaucitron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index 6809a36..60800cc 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -900,7 +900,7 @@ var tarteaucitron = { allDivs = main.childNodes; - if (typeof Array.prototype.map === 'function' && typeof Enumerable.each !== 'function') { + if (typeof Array.prototype.map === 'function' && typeof Enumerable === 'undefined') { Array.prototype.map.call(main.children, Object).sort(function (a, b) { //var mainChildren = Array.from(main.children); //mainChildren.sort(function (a, b) {