Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 86e0848

Browse files
committed
Merge pull request #90 from angular-ui/change-to-evalAsync
fix: error calling scope.$applyAsync
2 parents 115d740 + 15b84f0 commit 86e0848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui-codemirror.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function uiCodemirrorDirective($timeout, uiCodemirrorConfig) {
127127
codemirror.on('change', function(instance) {
128128
var newValue = instance.getValue();
129129
if (newValue !== ngModel.$viewValue) {
130-
scope.$applyAsync(function() {
130+
scope.$evalAsync(function() {
131131
ngModel.$setViewValue(newValue);
132132
});
133133
}

0 commit comments

Comments
 (0)