Possible Duplicate:
How to fix Array indexOf() in JavaScript for IE browsers
No support for indexOf in IE 8?
I'm trying to make a pacman game and everything was going fine until IE came along.
I'm using the astar code from this website: http://www.briangrinstead.com/blog/astar-search-algorithm-in-javascript
For some reason, it works fine on all the other browers except IE where I get this error msg every single time.
SCRIPT438: Object doesn't support property or method 'indexOf'
graph.js, line 112 character 9
This is how I've gone about calling the function.
var graph = new Graph(MazeMap);
var start = graph.nodes[rows][columns];
var end = graph.nodes[targetRow][targetColumn];
var result = astar.search(graph.nodes, start, end);