angular/angular.js — pull request #8861 by shahata (2014-08-30 09:17:59+00:00)
Title: fix(ngModel): make async validators play nicely with $parsers

when an async validator resolves, we decrease the `pendingCount` only if the `$viewValue` hasn't changed in the mean time. before this commit the view value after resolve was compared with the model value before resolve instead of the view value before resolve. this caused it never to resolve when those two are different (when `$parsers` are defined)