1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

(trunk web) #3671 "web client regression: new use of Array.indexOf() breaks in IE7 and IE8" -- fixed.

This commit is contained in:
Charles Kerr 2010-10-26 00:18:41 +00:00
parent 82781cf2a7
commit bd30dd291f

View file

@ -16,6 +16,16 @@ var Safari3 = testSafari3();
var iPhone = RegExp("(iPhone|iPod)").test(navigator.userAgent);
if (iPhone) var scroll_timeout;
if(!Array.indexOf){
Array.prototype.indexOf = function(obj){
var i, len;
for(i=0, len=this.length; i<len; i++)
if(this[i]==obj)
return i;
return -1;
}
}
function testSafari3()
{
var minimum = new Array(521,0);