Revert #208 Do not work on IE11

This commit is contained in:
Amauri CHAMPEAUX 2018-09-11 13:58:17 +02:00 committed by GitHub
parent 7aab572bf4
commit 7bccde22c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -880,8 +880,9 @@ var tarteaucitron = {
if (typeof Array.prototype.map === 'function') {
var mainChildren = Array.from(main.children);
mainChildren.sort(function (a, b) {
Array.prototype.map.call(main.children, Object).sort(function (a, b) {
//var mainChildren = Array.from(main.children);
//mainChildren.sort(function (a, b) {
if (tarteaucitron.services[a.id.replace(/Line/g, '')].name > tarteaucitron.services[b.id.replace(/Line/g, '')].name) { return 1; }
if (tarteaucitron.services[a.id.replace(/Line/g, '')].name < tarteaucitron.services[b.id.replace(/Line/g, '')].name) { return -1; }