Bug Tracker

Modify

Ticket #772 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

filter( filter ) doesn't work at all

Reported by: nevermore@… Owned by:
Priority: major Milestone: 1.1a
Component: core Version: 1.1a
Keywords: Cc:
Blocking: Blocked by:

Description

filter(callback) doesn't work like it should  http://docs.jquery.com/API/1.1a/DOM/Traversing#filter.28_filter_.29

example: HTML <div id="container"> <div class="searchable">100</div> <div class="searchable">101</div> <div class="searchable">110</div> <div class="searchable">111</div> </div>

javascript: $('#container .searchable').filter(function() {return true;}) $('#container .searchable').filter(function() {return false;}) both return every .searchable element.

Change History

comment:1 Changed 6 years ago by john

  • Status changed from new to closed
  • Version set to 1.1a
  • Resolution set to fixed
  • Milestone set to 1.1a

Fixed in SVN.

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.