Why specifcially in my example does this "too much recursion" error occur in my JavaScript?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2011-01-07T02:32:01Z Indexed on 2011/01/07 2:54 UTC
Read the original article Hit count: 208

Filed under:
|

I have been looking into this for a little while now.

I have a gallery on my page, that uses Ariel Flesler's scrollTo plugin.

It works fine on the home page, but not on the Contact page.

In Firefox, I get the error...

Too much recursion

I have sorted through as much code as possible and set breakpoints in a few places.

I am pretty sure it is something to do with the plugin (specifically, when it is called in the click handler).

For your convenience, I am using the unpacked versions of jQuery and scrollTo plugin.

What on earth am I doing wrong?

Thanks for your time.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about scrollto