Skip to content

Commit

Permalink
remove disposal code that is breaking toasts after the first one
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Aug 23, 2016
1 parent 3c08de7 commit 8a8de97
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/toastr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toastr-ng2",
"version": "1.1.0",
"version": "1.2.0",
"description": "Toastr for Angular 2",
"main": "./toastr.js",
"typings": "./toastr.d.ts",
Expand Down
4 changes: 0 additions & 4 deletions src/components/toastr/toastr-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ export class ToastrService {
}
});
}
if (!this.toasts.length) {
// this.overlay.dispose();
activeToast.overlayRef.dispose();
}
return true;
}
private _findToast(toastId: number): {index: number, activeToast: ActiveToast} {
Expand Down

0 comments on commit 8a8de97

Please sign in to comment.