MCPcopy Create free account
hub / github.com/jquery-validation/jquery-validation / elementMatcher

Function elementMatcher

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

Source from the content-addressed store, hash-verified

2004 }
2005
2006 function 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
2020 function multipleContexts( selector, contexts, results ) {
2021 var i = 0,

Callers 1

matcherFromTokensFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…