-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
fix destroy method data-anchor #2790
base: dev
Are you sure you want to change the base?
Conversation
Thanks for it! |
In the same page, no reload. |
Right I see now! Thanks for the explanation! And it should only do it when the anchors are defined in the fullpage.js initialization object, not when they are defined in the DOM with the |
Ah, I'm not sure, in that case, when they are not defined. |
Why. |
oh, you are right.
|
You defined the flag to Let me know if you still want to commit the pull request to Then add it in the previous loop: container.find('[data-anchor]').each(function () {
$(this).removeData('anchor');
if( anchorsDefinedByUser){
//do whatever
}
}); |
fix destory method data-anchor
Remove jquery.fn.data's cache for anchor when destroy.