Fix a bug with Prototype Enumerable
This commit is contained in:
parent
10b8db89bb
commit
699be0de5c
|
|
@ -900,7 +900,7 @@ var tarteaucitron = {
|
||||||
|
|
||||||
allDivs = main.childNodes;
|
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) {
|
Array.prototype.map.call(main.children, Object).sort(function (a, b) {
|
||||||
//var mainChildren = Array.from(main.children);
|
//var mainChildren = Array.from(main.children);
|
||||||
//mainChildren.sort(function (a, b) {
|
//mainChildren.sort(function (a, b) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue