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

Commit 15b84f0

Browse files
committed
fix: error calling scope.$applyAsync
Closes #89
1 parent 115d740 commit 15b84f0

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)