ansarali / 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' #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open in Internet Explorer using Filter implementation.
2.
3.

What is the expected output? What do you see instead?
I did not expect an error.

What version of the product are you using? On what operating system?
jQuery FN Google Map 3.0-beta

Please provide any additional information below.

I've been able to get it to work by replacing line 176. Using the 
jQuery.inArray method instead.

c(d[e], (( b.delimiter && d[e][b.property] ) ? ( 
d[e][b.property].split(b.delimiter).indexOf(b.value) > -1 ) : ( 
d[e][b.property] === b.value )));

With this

c(d[e], (( b.delimiter && d[e][b.property] ) ? ( jQuery.inArray(b.value, 
d[e][b.property].split(b.delimiter)) > -1 ) : ( d[e][b.property] === b.value 
)));

I have also notice line 189 uses indexOf as well, although it has not cause an 
error for me yet.

Original issue reported on code.google.com by bhuskil...@gmail.com on 9 Feb 2012 at 6:09

GoogleCodeExporter commented 8 years ago
Seems to have been reintoduced. Fix for issue 20, yet again. Download might be 
affected still.

Original comment by johansalllarsson on 9 Feb 2012 at 7:18