Bug Tracker

Modify

Ticket #2224 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

Support unbind(".namespace")

Reported by: joern Owned by:
Priority: minor Milestone: 1.2.3
Component: event Version: 1.2.2
Keywords: Cc:
Blocking: Blocked by:

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".

Change History

comment:1 Changed 5 years ago by scott.gonzal

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [4601].

comment:2 Changed 5 years ago by joern

And [4649].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.