hey Shane,
Nick's comments above simply reinforce the need for explicit variable
declaration. ignoring the var keyword, even when picking names that
don't collide with properties of the window object, is a dangerous
practice. it leads to hard-to-spot bugs, scope issues, and a whole
mess of other
Weird double post. Found the issue. For some reason declaring the
variable worked. So I changed it to:
var top = (parseInt($(this).height()) / 2) - 6;
On Sep 24, 7:31 am, Shane Riley shanerileydoti...@gmail.com wrote:
I've got a simple each function that finds every subnav and assigns it
a
2009/9/24 Shane Riley shanerileydoti...@gmail.com:
Weird double post. Found the issue. For some reason declaring the
variable worked. So I changed it to:
var top = (parseInt($(this).height()) / 2) - 6;
That's because top is already defined as a synonym for the top-level
window object, and
3 matches
Mail list logo