coolyuwk / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

IE7/8 Object doesn't support property or method 'indexOf' #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Visit the marker filtering example with IE7 or IE8 and chose one of the 
dropdown filter selections (I used google maps to produce the screenshot).
2.
3.

What is the expected output? What do you see instead?
I didn't expect an error.  I've appended a snippet showing the details with IE9 
in IE8 mode.

What version of the product are you using? On what operating system?
Windows7 IE9 is up-to-date.  
<http://jquery-ui-map.googlecode.com/svn/trunk/demos/google-maps-jquery-filterin
g.html> is the example mentioned above.

Please provide any additional information below.

Original issue reported on code.google.com by rdthr...@gmail.com on 5 Sep 2011 at 1:40

Attachments:

GoogleCodeExporter commented 8 years ago
Seems like IE7 and IE8 doesn't support Array.indexOf. 

Possible impl:

http://api.jquery.com/jQuery.inArray/ or extend Array.prototype, eg. 

if ( !Array.prototype.indexOf ) {
Array.prototype.indexOf = function(obj, start) {
     for ( var i = (start || 0), j = this.length; i < j; i++ ) {
         if ( this[i] === obj ) { return i; }
     }
     return -1;
}
}

Original comment by johansalllarsson on 5 Sep 2011 at 3:18

GoogleCodeExporter commented 8 years ago

Original comment by johansalllarsson on 5 Sep 2011 at 3:19

GoogleCodeExporter commented 8 years ago
This issue is fixed in the trunk (minified version is still affected)

Original comment by johansalllarsson on 5 Sep 2011 at 3:30

GoogleCodeExporter commented 8 years ago
Thanks.  That fixes the problem for me.

Original comment by rdthr...@gmail.com on 5 Sep 2011 at 5:36

GoogleCodeExporter commented 8 years ago
Perfect Thanks a lot:)

Original comment by dangel...@intuitiv-technology.bg on 20 May 2013 at 6:29