[jQuery] Re: Rare .die() behaviour

2009-07-13 Thread Leeoniya
created a ticket: http://dev.jquery.com/ticket/4894 On Jul 11, 1:57 pm, Leeoniya wrote: > yeah, that seems like a bug. here is a more concise version showing > the bug and a non-delegation based version: > > // without event delegation -- works fine > $(function() { >         $("#b").click(funct

[jQuery] Re: Rare .die() behaviour

2009-07-11 Thread Leeoniya
yeah, that seems like a bug. here is a more concise version showing the bug and a non-delegation based version: // without event delegation -- works fine $(function() { $("#b").click(function() { $("#a span").unbind("click"); return false; });

[jQuery] Re: Rare .die() behaviour

2009-07-11 Thread Pau Taw
Finally I've isolated the problem in a little example. I'll post the code below. As I could test if you bind the events to a child element then the die () removes all events bound to that. In the example I just bind mouseover, mouseout and click to a span inside of a paragraph. Then remove the cl

[jQuery] Re: Rare .die() behaviour

2009-07-08 Thread Pau Taw
The code is part of a big proyect, and I've added this behaviour recently, so posting all the code is a little bit... imposible i think, too much lines. But thanks for the answer, knowing that it must work as it's expected I'll jus debug the code to find if something is making it work wrong. I'll

[jQuery] Re: Rare .die() behaviour

2009-07-07 Thread James
Using jQuery 1.3.2, I've tested this on my own very basic set up and it's working as expected (only the click event is unbinded). There's something else going on in your code. Could you provide more information? Such as your HTML. On Jul 7, 1:59 pm, Pau Taw wrote: > Hi all. I've the next code: >