webcreate/infinite-ajax-scroll — pull request #98 by Ericbla (2013-10-08 13:43:35+00:00)
Title: Container for loader and trigger components (Fixes #97)

Current version of library uses **div** to wrap the *loader* image or *trigger* button. These components are added after the last item inside the container.
In order to be able to support a larger number of components as container and item, the html element used to wrap the *loader* and *trigger* should be configurable.

Indeed, if you use an `

` as the container and an `
` as the item, the loader image and the trigger button will appear as `

` resulting in a non standard DOM construction (`

...

...

`) and difficulties (depending of the browser) to manage presentation through css.

This pull-request adds a new configuration parameter: **control_container** that will hold the new wrapping html tag name for the *loader* and *trigger*.

* **"div"** will be the default value (as current code).
* An **"auto"** magic value will be also supported to let the library to use the same html tag name as the one holding the item selector.