Use case:
- The user opens VisualEditor
- The user types something that looks like wikitext
- VE notices and displays an mw.notify bubble with autoHide:false
- The user leaves VE by clicking on the Read tab
- The editor is torn down and we go back to view mode, but the bubble persists
I would like to be able to remove this bubble when the editor is torn down, but mw.notification doesn't expose an API for this. There is a .close() method on Notification, but there's no way to get the Notification object created by mw.notify().
Version: 1.22.0
Severity: enhancement