Skip to main content

Bug Tracker

Side navigation

#5712 closed enhancement (fixed)

Opened December 24, 2009 07:03PM UTC

Closed April 17, 2011 05:55AM UTC

Allow jQuery.fn.is to accept a function

Reported by: dayletter Owned by:
Priority: low Milestone: 1.6
Component: traversing Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
Description

I am surprised that jQuery.fn.is does not handle the parameter as a function since it is more or less the same as jQuery.fn.filter(...).length > 0, while jQuery.fn.filter does accept a function.

Attachments (0)
Change History (6)

Changed October 19, 2010 01:07AM UTC by snover comment:1

milestone: 1.4.41.5

Retarget all enhancements/features to next major version.

Changed October 19, 2010 05:57AM UTC by snover comment:2

keywords: → needsreview

Changed October 22, 2010 06:12PM UTC by rwaldron comment:3

component: coretraversing
priority: minorlow
status: newopen

http://jsfiddle.net/9Va7k/

jQuery does not yet support this.

Additionally, I've closed http://bugs.jquery.com/ticket/2579 - as it requested the same support AND $.fn.not

Changed October 24, 2010 04:48PM UTC by rwaldron comment:4

owner: → rwaldron
status: openassigned

Changed April 16, 2011 09:54PM UTC by john comment:5

milestone: → 1.next
owner: rwaldron
status: assignedopen

Let's considering this for 1.7.

Changed April 17, 2011 05:55AM UTC by timmywil comment:6

keywords: needsreview
milestone: 1.next1.6
resolution: → fixed
status: openclosed
version: 1.4a21.5.2

Now that I think about it, with my recent changes it already does: http://jsfiddle.net/timmywil/cLSBM/