angular-ui/angular-ui — pull request #540 by yoyoyojomo (2013-04-19 04:21:54+00:00)
Title: Fix initialization for select2 in AJAX mode

Without this patch initialization gets broken in weird ways. The element value is set to the string "[object Object]" and initSelection is invoked to initialize the model value. If initSelection is not set as an option, the model value is set to null.