Added suppress function. The fire function won't be executed when ouibounce is suppressed untill suppress(false) is called.
In my case I did not want to fire function to trigger when another dialog was open on my page. However, I wanted the fire function to be triggered again once that dialog is closed.
Calling suppress(true) when opening the dialog and suppres(false) when closing this dialog does the trick now.
Added suppress function. The fire function won't be executed when ouibounce is suppressed untill suppress(false) is called.
In my case I did not want to fire function to trigger when another dialog was open on my page. However, I wanted the fire function to be triggered again once that dialog is closed. Calling suppress(true) when opening the dialog and suppres(false) when closing this dialog does the trick now.