MCPcopy Create free account
hub / github.com/components/jquery / elementMatcher

Function elementMatcher

jquery.js:2006–2018  ·  view source on GitHub ↗
( matchers )

Source from the content-addressed store, hash-verified

2004}
2005
2006function elementMatcher( matchers ) {
2007 return matchers.length > 1 ?
2008 function( elem, context, xml ) {
2009 var i = matchers.length;
2010 while ( i-- ) {
2011 if ( !matchers[ i ]( elem, context, xml ) ) {
2012 return false;
2013 }
2014 }
2015 return true;
2016 } :
2017 matchers[ 0 ];
2018}
2019
2020function multipleContexts( selector, contexts, results ) {
2021 var i = 0,

Callers 1

matcherFromTokensFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected