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
Use jQuery namespaces for all binded events #294
Comments
+1 |
The rationale in our case is that we have a single-page application, so we never reload the page. So we have to be able to clean everything between moving through different documents. |
This would be an easy update to the |
So there should be a way to unload annotator completely. |
Agreed. There is, in recent tree. The |
Exactly this was motivation for this ticket. :-) |
Is there any cleanup code already in place? Or should I improvise for now? |
Yes, there is. See my previous comments. I mentioned the important points. You might also want to audit some plugins for events set on |
@mitar was that clear? |
I definitely see bindings with jQuery oustide The issue is also that there is no consistency in how code binds events. So we have Why not just use jQuery |
To answer question, I've already voiced support for doing exactly what you suggest. I'm asking if my answer was clear enough such that you feel you can now begin to implement that, and if you have interest in doing so. |
So exceptions should stay exceptions? Anyway, in our extended |
I made no claim about whether they should stay the way they are. I suspect not. I said already I like the namespace idea. Would you like to work on this? |
I think I already did it. :-) So I think it would be enough just to define a Where should this code be? Which branch? Against |
We are working on several different branches in hypothesis/annotator. I wouldn't recommend adding any further divergent branches, at this point. (That being said, I fully support the idea of consolidating the mixed |
Definitely on okfn/master! |
I mean okfn/annotator@master |
At this point, I believe master accomplishes this. |
Annotator should really use jQuery namespaces for all binded events, so that it is easy to possible to unbind events as well without interfering with other things.
The text was updated successfully, but these errors were encountered: