TEHEK/angular.js — comment on commit defa2c2f5bd1ef13318be682c82748b2f5472a5a
File: src/widget/select.js line 392
By TEHEK:

`existingOption` was taken from cache (`optionGroupsCache`). When user switches selection to something else, the `existingOption.element.selected` is changed, but `existingOption.selected` is not.

It worked well if there was no '?' element in `optionGroups` (added on line 343). When added, it caused `existingOptions` and `optionGroups` to grow. When user switched from '?' to something else, the `optionGroups` was shrinked by 1 element, but `existingOptions` was not. The compiler started replacing _labels_ and _ids_ in `
` tags, but the selection was not updated.

Jeez. This commit was like 8 symbols, but the explanation and debugging took sooo long :)