Side navigation
#690 closed bug (fixed)
Opened December 22, 2006 03:19PM UTC
Closed December 23, 2006 05:43PM UTC
Last modified June 20, 2007 06:41AM UTC
Extend unbdind and jquery.event.handle to accept event object for unbinding
Reported by: | joern | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1a |
Component: | ajax | Version: | 1.1a |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Test:
test("unbind(event)", function() { expect(3); var el = $("#firstp"); el.click(function() { ok( true, "Fake normal bind" ); }); el.click(function(event) { el.unbind(event); ok( true, "Fake onebind" ); }); el.click().click(); });
Implementation:
Within the for loop in handle: event.handler = c[j]; Within unbind: if(type.type && type.target) { jQuery.event.remove( this, type.type, type.handler ); } else jQuery.event.remove( this, type, fn );
Attachments (0)
Change History (1)
Changed December 23, 2006 05:43PM UTC by comment:1
milestone: | → 1.1 |
---|---|
resolution: | → fixed |
status: | new → closed |
version: | → 1.1 |
I've added this in SVN (rev 775).