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:
parent
82781cf2a7
commit
bd30dd291f
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue