This delegate event is fired twice (not always, sometimes).
client.bindButtonClickFunction = function(){ $("#client-plugin").delegate(".client-button", "click", function() { var id = this.id.split('-')[2]; client.retrieveMessageByID(id); }); };
I call the function after inserting all the ".client-button".
Any thoughts on how to stop it? I tried event.stopPropagation (), as well as undelegating and re-delegating to no avail.
This is in Chrome, as part of the Chrome plugin.
source share