angular/angular.js — pull request #10299 by Narretz (2014-12-02 20:57:19+00:00)
Title: fix(ngModelController): don't run $validators if modelValue hasn't chang...

...ed

This fixes issues where a parser calls $setViewValue. This is a common
strategy for manipulating the $viewValue while the user is entering
data into an input field.

When the $viewValue was changed inside the parser, the new viewValue
would be committed and used for validation. The original parser
however would run last and pass the original (outdated) viewValue on
to the validators, which could cause false positives, e.g. for
minlength.

This is a regression since 1.3.0-rc.1, caused by https://github.com/angular/angular.js/commit/6046e14bd22491168116e61ffdf5fd3fed5f135c#diff-c244afd8def7f268b16ee91a0341c4b2L2055