namespace click handlers
Namespace click event handlers to allow specific binding / unbinding of cocoon. Also fixes issues you may encounter with things like https://github.com/gemgento/rails_script removing bindings on page load/change.
Hi, could we get this merged? It would fix an issue with rails_script and turbolinks which we are having. I'm surprised that there is no follow-up on this, since I think there are more projects using rails-script/turbolinks/cocoon setup.
@nathanvda Thank you
Is this PR still relevant? I was hesitant to merge since I did not (still do not) completely understand the need for this. Although on the other hand this merge is completely safe/backwards compatible, right? Also I am thinking this might have been fueled by incorrrect/incomplete turbolinks behaviour, which should be ok now?