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

unBind or destory method #4

Open
MoonDevilzzz opened this issue Mar 21, 2016 · 2 comments
Open

unBind or destory method #4

MoonDevilzzz opened this issue Mar 21, 2016 · 2 comments

Comments

@MoonDevilzzz
Copy link

Hi guys, what about destroy or unbind method? Is it available? How can i unbind the plugin?

@bogdan
Copy link
Owner

bogdan commented Mar 24, 2016

I am not sure what do you mean. Please explain

@MoonDevilzzz
Copy link
Author

i have a lightbox plugin that shows a form loaded via ajax. On load event i'm starting the plugin and all fine, but when popup closed and opened again plugin initializing again and by one-click form send the result twice e.t.c, so i want to unbind ajaxSubmit on popup close.

onLoad:function(){
$('.box form').ajaxForm();
},
onClose:function(){
//unbind plugin
}

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

No branches or pull requests

2 participants