MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / elementMatcher

Function elementMatcher

camera/jquery.js:2119–2131  ·  view source on GitHub ↗
( matchers )

Source from the content-addressed store, hash-verified

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

Callers 1

matcherFromTokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected