Skip to content

Commit ca8f45a

Browse files
committed
Notifications should emit close on close, not eventual GC
1 parent e2d5aaf commit ca8f45a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

atom/browser/api/atom_api_notification.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ void Notification::NotificationDisplayed() {
169169
}
170170

171171
void Notification::NotificationDestroyed() {
172-
Emit("close");
173172
}
174173

175174
void Notification::NotificationClosed() {
175+
Emit("close");
176176
}
177177

178178
// Showing notifications

docs/api/notification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Returns:
7474

7575
Emitted when the notification is closed by manual intervention from the user.
7676

77-
This event is not guarunteed to be emitted in all cases where the notification
77+
This event is not guaranteed to be emitted in all cases where the notification
7878
is closed.
7979

8080
#### Event: 'reply' _macOS_

0 commit comments

Comments
 (0)