jQuery: The Write Less, Do More JavaScript Library

Ticket #2224 (closed enhancement: fixed)

Opened 4 months ago

Last modified 3 months ago

Support unbind(".namespace")

Reported by: joern Assigned to: anonymous
Type: enhancement Priority: minor
Milestone: 1.2.3 Component: event
Version: 1.2.2 Keywords:
Cc: Needs: Review

Description

Plugin code for unbinding plugins could be simplified a lot by supporting a this syntax:

$(...).unbind(".namespace")

That way a plugin author can avoid to reiterate all event names when he already namespaced them all anyway.

Currently the check for events[type] in event.js on line 129 prevents removal of "namespace-only events".

Attachments

Change History

Changed 3 months ago by scott.gonzalez

  • status changed from new to closed
  • resolution set to fixed

Fixed in [4601].

Changed 3 months ago by joern

And [4649].

Note: See TracTickets for help on using tickets.