MCPcopy Create free account
hub / github.com/JsAaron/jQuery / elementMatcher

Function elementMatcher

2.1.1/test/jquery-2.1.1.js:2118–2130  ·  view source on GitHub ↗
( matchers )

Source from the content-addressed store, hash-verified

2116}
2117
2118function elementMatcher( matchers ) {
2119 return matchers.length > 1 ?
2120 function( elem, context, xml ) {
2121 var i = matchers.length;
2122 while ( i-- ) {
2123 if ( !matchers[i]( elem, context, xml ) ) {
2124 return false;
2125 }
2126 }
2127 return true;
2128 } :
2129 matchers[0];
2130}
2131
2132function multipleContexts( selector, contexts, results ) {
2133 var i = 0,

Callers 1

matcherFromTokensFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected