Fix for dismiss in Firefox

Firefox requires all events to have 'event' argument passed to them. Dismiss simply does not work without it.