angular/angular.js — pull request #5994 by jbalboni (2014-01-26 21:25:10+00:00)
Title: fix(select): avoid checking option element selected properties in render

In Firefox, hovering over an option in an open select menu updates the selected property of option
elements. This means that when a render is triggered by the digest cycle, and the list of options
is being rendered, the selected properties are reset to the values from the model and the option
hovered over changes. This fix changes the code to only use DOM elements' selected properties in a
comparison when a change event has been fired. Otherwise, the internal new and existing option
arrays are used.

This is based on the fix given in #2448, but updated to fix the regression discussed there.

Closes #2448