helenhousandi/wp-19867-9864 — pull request #9 by ericandrewlewis (2014-10-09 21:05:00+00:00)
Title: Select2 19867 js wrapper

I'm curious how generic others think this wrapper should be.

Select2 has a rather specific API regarding AJAX endpoints and the data expected by them. Presumably similar libraries have their own opinionated internals which may differ, so exposing a generic Select2 wrapper doesn't sound like a good option to me. Rather, a one-off per use case - here, offering $().wpUsersDropdown().