Bug Tracker

Ticket #2773 (new enhancement)

Opened 4 months ago

$.fn.is and $.fn.not should accept DOMelements and jQuery collections

Reported by: paul Assigned to: anonymous
Type: enhancement Priority: major
Milestone: 1.2.4 Component: core
Version: 1.2.3 Keywords:
Cc: Needs: Review

Description

This is basically an addition to #2579. I have had this usecase in almost any UI plugin: The simple task, that I want to see if my DOMelement is within the current jQuery set.

Right now, I have to do something like this:

var inset = false; $(..).each(function() {

if(this == myElement) inset = true;

});

This would be /much/ easier and logical if I could simply do

$(..).is(myElement)

Attachments

is.diff (453 bytes) - added by flesler 4 months ago.

Change History

Changed 4 months ago by flesler

Note: See TracTickets for help on using tickets.