Bug Tracker

Modify

Ticket #4200 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

$.fn.filter() and $.fn.not() are needlessly asymmetrical

Reported by: maranomynet Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

One automatically assumes $.fn.not() is simply an inversed $.fn.filter()

... which it isn't, as .not() doesn't accept functions as parameters, and .filter() doesn't accept elements, collections, or nodelists.

This asymmetry seems wholly needless and relatively easy to fix, and might even result in a more compact code.

Change History

comment:1 Changed 4 years ago by yehuda

  • Version changed from 1.3.1 to 1.3.2
  • Milestone changed from 1.3.2 to 1.3.3

comment:2 Changed 4 years ago by yehuda

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

Resolved by #6443

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.