Topic: Node switch function not working in IE7

Hi All,

I've found a bug when working with IE7, version 7.0.5730.11

When I'm trying to call the switch function in IE7, it throws an error indicating that it is expecting a case statement.  Until/unless M$ fixes this issue, I'd like to suggest that the function Mif.Tree.Node.switch be named something else.  A snippit of my code is provided below:

for(var i=0;i<node_list.length;i++) {
   node_list[i].switch('unchecked');
}

The error (verbatim) from IE is "Expected identifier"
The same piece of code works flawlessly in Firefox.
Yes, IE sucks, but my employer is insisting on IE compliance

Thumbs up Thumbs down

Re: Node switch function not working in IE7

try

 node_list[i]['switch']('unchecked');