Просмотр исходного кода

Forget about IE 8 support ???

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2779 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 лет назад
Родитель
Сommit
ead0bf6dc3
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      js/utils.js

+ 4 - 0
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