[jQuery] Each function gives errors in IE6

2009-09-24 Thread Shane Riley
I've got a simple each function that finds every subnav and assigns it a vertical position equal to half of the subnav's height. This works great in all modern browsers, but in IE6 I get errors from each of the two lines within the function. Here's the problem function: $(".subnav").each(function

[jQuery] Each function gives errors in IE6

2009-09-24 Thread Shane Riley
I've got a simple each function that finds every subnav and assigns it a vertical position equal to half of the subnav's height. This works great in all modern browsers, but in IE6 I get errors from each of the two lines within the function. Here's the problem function: $(".subnav").each(function