mirror of
https://github.com/atom/atom.git
synced 2026-02-10 14:45:11 -05:00
Make notifications.clear public and emit event
This commit is contained in:
@@ -199,8 +199,10 @@ class NotificationManager {
|
||||
/*
|
||||
Section: Managing Notifications
|
||||
*/
|
||||
|
||||
|
||||
// Public: Clear all the notifications.
|
||||
clear () {
|
||||
this.notifications = []
|
||||
this.emitter.emit('did-clear-notifications')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user