angular/angular.js — pull request #3230 by KJTsanaktsidis (2013-07-15 05:35:17+00:00)
Title: fix select: with ngOptions and ngMultiple

This is, I think, a fix for issue #2113 (https://github.com/angular/angular.js/issues/2113)

Previously, would only work with hard-coded
elements underneath, not with ngOptions attribute. This is
because the boolean attribute is only actually applied inside a
scope.$watch, which happens after the link function for select is called.

The fix is to scope.$watch on the multiple attribute in the select
directive, and refresh the directive when it changes.

The problem is demonstrated with these two plunks:
Before patch: http://plnkr.co/edit/YCiJYpx5tq0pdc8Bp7Nb?p=preview
After patch: http://plnkr.co/edit/hyi91xNSgg3cQ96jCBPy?p=preview

I've signed the online contributor licence form, but I'm not sure how to link it with this pull request.