Skip to content

Commit

Permalink
Dirty workaround for scope not getting cleaned up and generating erro…
Browse files Browse the repository at this point in the history
…rs (froala#218)

The scope will still be kept alive for reasons unknown - but will not throw errors.
  • Loading branch information
robinwassen committed Dec 5, 2019
1 parent 0143573 commit 538ed12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/angular-froala.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@
};

ctrl.initListeners = function() {
if (!element) {
return;
}

if (ctrl.options.immediateAngularModelUpdate) {
ctrl.froalaEditor.events.on('keyup', function() {
scope.$evalAsync(ctrl.updateModelView);
Expand Down

0 comments on commit 538ed12

Please sign in to comment.