patik/within-viewport

Use w/o jQuery

Closed this issue · 2 comments

jQuery isn't required, right?

I'm trying to use this library without jQuery, and it seems to have issues. I think it can be resolved by ensuring that jQuery is defined prior to testing.

Do you have any examples of within-viewport being used w/o jquery?

Good catch. The only problem was that I didn't correctly check if jQuery was present (now fixed). For good measure I added a jQuery-less demo page to ensure it works.

Awesome. That's what I did locally. :) thanks!