Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add canFire option #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

srogier
Copy link

@srogier srogier commented Nov 26, 2015

Check if Ouibounce can be fired before triggering the callback.

May be usefull if you want to check something before triggering ouibounce (in my case, checking whether a modal is currently opened or not)

Check if Ouibounce can be fired before opening triggering the callback
@srogier
Copy link
Author

srogier commented Jan 10, 2016

Hi!
any news about this PR ?

@lee-tms
Copy link

lee-tms commented Jan 19, 2016

+1

There are scenarios where you don't want it to fire (to only invoke on certain pages, for example), which I've done using an If statement wrapping around the ouibounce call, but this would be a neater solution.

@thdk
Copy link

thdk commented Mar 2, 2016

+1 That's also what we need!
I also had a fix for this but this solutions seems even better to me :)

@clbagrat
Copy link

any news?

@patrick-mcdougle
Copy link

An alternate solution might be as I've described in #137 which would allow code to disable the modal (perhaps through events or some other mechanism)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants