ivaynberg/select2 — pull request #185 by tfiwm (2012-07-04 15:07:48+00:00)
Title: improvement for the formatSelection function

-The close event is now delegated to all elements inside the li which have the class "select2-search-choice-close"

It is now possible to return a jQuery object in the formatSelection function

Usecase:

I need this for an asynchronous behavior for custom tags.
I send in the function an ajax call to validate something from the backend and the anwser need access to the dom element. This is only possible if the element is a dom/jQuery Element.