paulirish/infinite-scroll — pull request #461 by ShobhitSharma (2013-09-27 02:05:30+00:00)
Title: Ajax POST method options added and identation fix

Added new custom options for ajax POST request for extracting data

**New options:**

- isAjaxPOST : Boolean type, *false* by default
- dataQuery : The data query or form attribute object to be passed along

**Method:**

```
if (opts.isAjaxPOST === true) {
$.ajaxSetup({
type: "POST",
data: JSON.stringify(opts.query)
/* //uncomment if your SSL requires access token
, headers: {'X-Access-Token': 'enter_token_here'}, */
});
} else {
$.ajaxSetup({
type: "GET"
}); // Loads default GET
}
```