(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
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue