Skip to content

Commit

Permalink
1.0.6 : fix #28
Browse files Browse the repository at this point in the history
  • Loading branch information
yabab-dev committed Aug 11, 2016
1 parent 0bf75e5 commit 3b88f12
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 24 deletions.
42 changes: 23 additions & 19 deletions lib/CKEditor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/CKEditor.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng2-ckeditor",
"version": "1.0.5",
"version": "1.0.6",
"description": "Angular2 CKEditor component",
"main": "lib/CKEditor.js",
"typings": "./CKEditor.d.ts",
Expand Down
8 changes: 5 additions & 3 deletions src/CKEditor.es6
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ export class CKEditor {
*/
ngOnDestroy(){
if (this.instance) {
this.instance.removeAllListeners();
this.instance.destroy();
this.instance = null;
setTimeout(() => {
this.instance.removeAllListeners();
this.instance.destroy();
this.instance = null;
});
}
}

Expand Down

0 comments on commit 3b88f12

Please sign in to comment.