From f7642283f39e9c869c6230b4cdc6d26dc56dfe33 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Wed, 26 Jun 2013 13:55:27 +0000 Subject: [PATCH] Forget about IE 8 support ??? SVN:trunk[2779] --- js/utils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/utils.js b/js/utils.js index d539ee6de..7ebd01c7a 100644 --- a/js/utils.js +++ b/js/utils.js @@ -2,6 +2,9 @@ //IE 8 compatibility, copied from: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/IndexOf if (!Array.prototype.indexOf) { + + if (false) // deactivated since it causes troubles: for(k in aData) => returns the indexOf function as first element on empty arrays ! + { Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) { "use strict"; if (this == null) { @@ -32,6 +35,7 @@ if (!Array.prototype.indexOf) { } return -1; } + } } /** * Reload a truncated list