(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
1 changed files with 10 additions and 0 deletions

View File

@ -16,6 +16,16 @@ var Safari3 = testSafari3();
var iPhone = RegExp("(iPhone|iPod)").test(navigator.userAgent); var iPhone = RegExp("(iPhone|iPod)").test(navigator.userAgent);
if (iPhone) var scroll_timeout; 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() function testSafari3()
{ {
var minimum = new Array(521,0); var minimum = new Array(521,0);