appMobi/jQ.Mobi — Issue #67: binding the same event queues instead of overwriting
Author: Raineo
Created: 2012-02-05 12:25:46+00:00
State: open

Now, I might be missing something, so this might be more of a question than a bug, but you guys don't have a "forum" where I can ask a question, so here I am on github

So, I bind a click event to an element "theElement". The function that is fired loads up content via ajax and in the ajax callback, after the loaded content is rendered into an unrelated element, I want to assign a different behavior for the click event on "theElement". So I bind a click event to "theElement". Now... I -expect- for the new function to override the old one, but now BOTH of them fire one after another. Am I supposed to unbind a click event before binding a new click event? Does one not override the other by design? Any advise?

Thanks for writing jQ.Mobi. This library is very timely in the wake of "mobile first" design paradigm.

Raine