Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
fix(ui-ace): issue with digest already in progress error
Browse files Browse the repository at this point in the history
  • Loading branch information
nickradford authored and douglasduteil committed Dec 14, 2013
1 parent 3482eaa commit 1b2dcd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui-ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ angular.module('ui.ace', [])
onChange = function (callback) {
return function (e) {
var newValue = session.getValue();
if (newValue !== scope.$eval(attrs.value) && !scope.$$phase) {
if (newValue !== scope.$eval(attrs.value) && !scope.$$phase && !scope.$root.$$phase) {
if (angular.isDefined(ngModel)) {
scope.$apply(function () {
ngModel.$setViewValue(newValue);
Expand Down

0 comments on commit 1b2dcd5

Please sign in to comment.