Skip to content

Commit

Permalink
Merge pull request #76 from MurhafSousli/new
Browse files Browse the repository at this point in the history
v3.0.3
  • Loading branch information
MurhafSousli authored Feb 16, 2019
2 parents 49961b7 + 0bebf43 commit e123264
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.0.3

- fix(HighlightChildren): fix `OnDestroy()` error (Cannot read property 'disconnect' of undefined), closes [#75](https://github.com/MurhafSousli/ngx-highlightjs/issues/75) in [3379905](https://github.com/MurhafSousli/ngx-highlightjs/commit/337990549984a5cc3007a7007273d562580e48f7).

## 3.0.2

- fix(HighlightChildren): Highlight children not working inside `[innerHtml]`, closes [#67](https://github.com/MurhafSousli/ngx-highlightjs/issues/67) in [969f3b3](https://github.com/MurhafSousli/ngx-highlightjs/pull/73/commits/969f3b343f4a1015aa89dfca4625d64e4b1a28fd).
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-highlightjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-highlightjs",
"version": "3.0.2",
"version": "3.0.3",
"description": "Instant code highlighting, auto-detect language, super easy to use.",
"homepage": "http://github.com/murhafsousli/ngx-highlightjs",
"author": {
Expand Down
4 changes: 3 additions & 1 deletion projects/ngx-highlightjs/src/lib/highlight-children.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export class HighlightChildren implements OnInit, OnDestroy {
}

ngOnDestroy() {
this._observer.disconnect();
if (this._observer) {
this._observer.disconnect();
}
}
}

0 comments on commit e123264

Please sign in to comment.