From: jeresig Date: Fri, 18 Dec 2009 15:54:34 +0000 (-0500) Subject: Removed jQuery.fn.contains - didn't match the :contains() selector and confused thing... X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=9368b188c06dd66d43e3a488465078e1d6eb765f Removed jQuery.fn.contains - didn't match the :contains() selector and confused things. Thanks ajpiano for the tip. --- diff --git a/src/traversing.js b/src/traversing.js index d30e4e6..42444c3 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -68,10 +68,6 @@ jQuery.fn.extend({ }); }, - contains: function( target ) { - return this.has( target ).length > 0; - }, - not: function( selector ) { return this.pushStack( winnow(this, selector, false), "not", selector); },