Skip to content

Commit 0104bba

Browse files
committed
jQuery.find: Remove "Backwards-compatible plugins"
Remove the "Backwards-compatible plugins for pseudos with arguments" section. It's no longer supported in jQuery 4.0 and it's pretty low-level anwyay.
1 parent b0b3058 commit 0104bba

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

entries/jQuery.find.xml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -205,38 +205,6 @@ jQuery.expr.pseudos.not =
205205
} );
206206
</code></pre>
207207

208-
<h6>Backwards-compatible plugins for pseudos with arguments</h6>
209-
210-
<p>In order to write a custom selector with arguments that can take advantage of the new API, yet still support all versions of jQuery, check for the <code>createPseudo</code> method.</p>
211-
212-
<p>The following example uses jQuery syntax. <a href="http://jsfiddle.net/timmywil/EKtzH/">Live example</a></p>
213-
<pre><code>
214-
// An implementation of a case-insensitive contains pseudo
215-
// made for all versions of jQuery
216-
( function( $ ) {
217-
218-
function icontains( elem, text ) {
219-
return (
220-
elem.textContent ||
221-
elem.innerText ||
222-
$( elem ).text() ||
223-
""
224-
).toLowerCase().indexOf( ( text || "" ).toLowerCase() ) > -1;
225-
}
226-
227-
$.expr.pseudos.icontains = $.expr.createPseudo ?
228-
$.expr.createPseudo( function( text ) {
229-
return function( elem ) {
230-
return icontains( elem, text );
231-
};
232-
} ) :
233-
function( elem, i, match ) {
234-
return icontains( elem, match[ 3 ] );
235-
};
236-
237-
} )( jQuery );
238-
</code></pre>
239-
240208
<h5><code>jQuery.expr.setFilters.LOWERCASE_NAME = function( elements, argument, not ) {}</code></h5>
241209

242210
<p>These filters are run after a previous part of a selector has already returned results. <code>setFilters</code> are found from matching <code>jQuery.expr.match.POS</code>. When applicable, <code>argument</code> is expected to be an integer. The <code>not</code> argument is a boolean indicating whether the result should be inverted (as in <code>div:not(:first)</code>).</p>

0 commit comments

Comments
 (0)