Skip to content

Commit 2ebfd03

Browse files
committed
Merge pull request angular-ui#47 from ohana54/fix-phase-check
Check $$phase on the root scope
2 parents 4f1b631 + 1a3c618 commit 2ebfd03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tinymce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ angular.module('ui.tinymce', [])
1212
var expression, options, tinyInstance,
1313
updateView = function () {
1414
ngModel.$setViewValue(elm.val());
15-
if (!scope.$$phase) {
15+
if (!scope.$root.$$phase) {
1616
scope.$apply();
1717
}
1818
};

0 commit comments

Comments
 (0)