Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Triggering on load? #16

Open
Cessquill opened this issue May 15, 2015 · 0 comments
Open

Triggering on load? #16

Cessquill opened this issue May 15, 2015 · 0 comments

Comments

@Cessquill
Copy link

Hi - could be my layout - I'm using this with a 100% height div with overflow: auto in that triggers when a "more" classed div is scrolled to. This uses ajax to get more content.

There may be multiple of these divs on a page since I'm using tabs.

Unfortunately, whilst it was triggering correctly, in Chrome it was also triggering when the page loads initially. I've patched the code in the following way...

Line 73 modified to...
if (typeof lastTick != 'number' && typeof lastTick!='undefined') {
(added to also ignore "undefined" in the trigger.

This now works for me as expected. Afraid I'm new to Github, so apologies if I've submitted in the wrong place, or not included enough information.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant