ivaynberg/select2 — pull request #618 by foxbunny (2012-11-30 11:48:14+00:00)
Title: Fix for #607: Handle case when blank option is last and marked as selected

This fix adds a check for blank OPTION tag that has `selected` attribute in addition to check for blank first option, and also retriggers `setPlaceholder` in `updateSelection` so that placeholder is reapplied when user reselects the blank option. Tested other use cases, and it doesn't seem this patch breaks them.