ivaynberg/select2 — pull request #2849 by pzagor2 (2014-12-09 10:41:38+00:00)
Title: Don't add empty list items if formatResult return undefined.

I'm using custom formatResult implementation and for some items that I don't want in the list I return undefined... I get an empty space inside dropdown .. I think It should just not add the item at all...