ivaynberg/select2 — pull request #2470 by duhast (2014-06-19 08:42:38+00:00)
Title: XHR request passed to the `results` function

Hi! There was no way to get paging data in case it's sent in the response headers, so no good way to detect if there's more records to show inside the `results` function. This pull request adds the whole XHR object as the 4th argument of the `results` function.