carlsednaoui / ouibounce

Increase your landing page conversion rates.
MIT License
2.31k stars 375 forks source link

Added suppress function to temporary prevent the fire function. #110

Open thdk opened 8 years ago

thdk commented 8 years ago

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.