Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit cd435ca

Browse files
committed
use .18397phase
1 parent b0821af commit cd435ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ng/directive/input.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
24162416
</file>
24172417
* </example>
24182418
*/
2419-
var ngModelDirective = function() {
2419+
var ngModelDirective = ['$rootScope', function($rootScope) {
24202420
return {
24212421
restrict: 'A',
24222422
require: ['ngModel', '^?form', '^?ngModelOptions'],
@@ -2459,7 +2459,8 @@ var ngModelDirective = function() {
24592459

24602460
element.on('blur', function(ev) {
24612461
if (modelCtrl.$touched) return;
2462-
if (scope.$$phase) {
2462+
2463+
if ($rootScope.$$phase) {
24632464
scope.$evalAsync(modelCtrl.$setTouched);
24642465
} else {
24652466
scope.$apply(modelCtrl.$setTouched);
@@ -2469,7 +2470,7 @@ var ngModelDirective = function() {
24692470
};
24702471
}
24712472
};
2472-
};
2473+
}];
24732474

24742475

24752476
/**

0 commit comments

Comments
 (0)