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

Commit

Permalink
Merge pull request #90 from angular-ui/change-to-evalAsync
Browse files Browse the repository at this point in the history
fix: error calling scope.$applyAsync
  • Loading branch information
douglasduteil committed Jan 27, 2015
2 parents 115d740 + 15b84f0 commit 86e0848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui-codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function uiCodemirrorDirective($timeout, uiCodemirrorConfig) {
codemirror.on('change', function(instance) {
var newValue = instance.getValue();
if (newValue !== ngModel.$viewValue) {
scope.$applyAsync(function() {
scope.$evalAsync(function() {
ngModel.$setViewValue(newValue);
});
}
Expand Down

0 comments on commit 86e0848

Please sign in to comment.