Selaa lähdekoodia

Fix a bug with Prototype Enumerable

Amauri CHAMPEAUX 6 vuotta sitten
vanhempi
commit
699be0de5c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      tarteaucitron.js

+ 1 - 1
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) {