Skip to content

Commit

Permalink
fix(core): allow less intensive event emitters to be inside angular zone
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Mar 22, 2018
1 parent 67737f1 commit ddf9834
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/codemirror.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ export class CodemirrorComponent

this._ngZone.runOutsideAngular(() => {
this.codeMirror = fromTextArea(this.ref.nativeElement, this._options);
this.codeMirror.on('change', this.codemirrorValueChanged.bind(this));
this.codeMirror.on('cursorActivity', this.cursorActive.bind(this));
this.codeMirror.on('focus', this.focusChanged.bind(this, true));
this.codeMirror.on('blur', this.focusChanged.bind(this, false));
this.codeMirror.on('scroll', this.scrollChanged.bind(this));
this.codeMirror.setValue(this.value);
});
this.codeMirror.on('blur', this.focusChanged.bind(this, false));
this.codeMirror.on('focus', this.focusChanged.bind(this, true));
this.codeMirror.on('change', this.codemirrorValueChanged.bind(this));
this.codeMirror.setValue(this.value);
}
ngDoCheck() {
if (!this._differ) {
Expand Down

0 comments on commit ddf9834

Please sign in to comment.