Added support for conditionsMode. Defaults to 'all', but can be set to '...

...any'. In 'any' mode, if any of the conditions match, it will enter the handler. This is useful to taking actions at the top of a scrollable element as well as at the bottom.

In the application I am working on, I am implementing the infinite scroll as a sliding window. When you are near the top of the scroll, it will trigger fetching the previous batch of data and adding it to the top. When you are near the bottom of the scroll, it will trigger fetching the next batch of data and adding it to the bottom.

It will only keep a certain number of rows of data (3 pages worth) in browser memory at any given time.