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

Commit 145efc2

Browse files
author
Dean Sofer
committed
fix: Corrected jshint errors
1 parent e25bd6e commit 145efc2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/tinymce.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@ angular.module('ui.tinymce', [])
1515
if (inst.isDirty()) {
1616
inst.save();
1717
ngModel.$setViewValue(elm.val());
18-
if (!scope.$$phase)
18+
if (!scope.$$phase) {
1919
scope.$apply();
20+
}
2021
}
2122
},
2223
// Update model on keypress
2324
handle_event_callback: function (e) {
2425
if (this.isDirty()) {
2526
this.save();
2627
ngModel.$setViewValue(elm.val());
27-
if (!scope.$$phase)
28+
if (!scope.$$phase) {
2829
scope.$apply();
30+
}
2931
}
3032
return true; // Continue handling
3133
},
@@ -35,8 +37,9 @@ angular.module('ui.tinymce', [])
3537
if (ed.isDirty()) {
3638
ed.save();
3739
ngModel.$setViewValue(elm.val());
38-
if (!scope.$$phase)
40+
if (!scope.$$phase) {
3941
scope.$apply();
42+
}
4043
}
4144
});
4245
},

0 commit comments

Comments
 (0)