ivaynberg/select2 — pull request #893 by bgertonson (2013-02-19 17:44:03+00:00)
Title: #608 fix to allow distinct ajax urls

Because a shared options object is passed around when creating each instance of a select2 widget, the query function that was built would use the last ajax url that was set on the options object for all select2 widgets. By using a variable scoped to the closure, the ajax url can be maintained per select2 instance.