Changeset 11355


Ignore:
Timestamp:
Oct 26, 2010, 12:18:41 AM (11 years ago)
Author:
charles
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/common.js

    r11192 r11355  
    1616var iPhone = RegExp("(iPhone|iPod)").test(navigator.userAgent);
    1717if (iPhone) var scroll_timeout;
     18
     19if(!Array.indexOf){
     20        Array.prototype.indexOf = function(obj){
     21                var i, len;
     22                for(i=0, len=this.length; i<len; i++)
     23                        if(this[i]==obj)
     24                                return i;
     25                return -1;
     26        }
     27}
    1828
    1929function testSafari3()
Note: See TracChangeset for help on using the changeset viewer.