angular/angular.js — pull request #5282 by dtabuenc (2013-12-05 00:31:53+00:00)
Title: fix(input): ensure ngModelWatch() triggers second digest pass when appro...

...priate

Due to an earlier change, ngModelWatch() no longer returns a value to the
caller. This means the digest loop has no way to tell if the watch actually
modified anything and so can not schedule another pass.

This means any watches that watch form or model controller changes
(e.g. watches on form.$valid) that are scheduled prior to an ngModelWatch()
will not be able to see any changes made therin.

This commit fixes this behavior by returning the latest evaluated ng-model
value.

Closes #5258