| Issue 464: | how to remove the nyroModal feature on a link | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
What steps will reproduce the problem?
1. on my link I added class nyroModal and ran $('a.nyroModal').nyroModal();
2. then later removed the class nyroModal and again ran
$('a.nyroModal').nyroModal();
3. the nyroModal effect persists ???
What is the expected output? What do you see instead?
I would like to simply disable the nyroModal Feature on my link
What version of the product are you using?
latest
On what operating system?
FF , windows
|
||||||||
To disable the nyroModal feature, you should do: $('a.myLinkWithoutNyroModal').unbind('click.nyroModal'); This way, the binding added by nyroModal would be removed. I'm currently investigating using delegate instead of usual binding to solve all these king of problems.