Events, namespaces and duplicate functions

Events, namespaces and duplicate functions

<div dir="ltr">Yehuda said he found a bug during one of his presentations. I've created a simple test case of the said bug ( <a href="http://brandonaaron.net/jquery/issues/events/namespace_bug.html"> http://brandonaaron.net/jquery/issues/events/namespace_bug.html</a> ). You'll need to open it in Firefox and open up firebug. I've bound two click events with different namespaces to the document but they use the same function. <div>
</div><div>What would you expect to happen in this situation? Should we consider the namespace of the event when checking to see if the function has already been bound? When your thinking about this, think about custom events and events not even tied to DOM nodes.</div>
<div>
</div><div>The real reason this bug came up is because Yehuda was using the event system like no one really expected it to be used. </div><div>
</div><div>--</div><div>Brandon Aaron</div></div>