MCPcopy
hub / github.com/mongodb/node-mongodb-native / getAll

Function getAll

docs/2.2/js/jquery.js:6452–6472  ·  view source on GitHub ↗
( context, tag )

Source from the content-addressed store, hash-verified

6450});
6451
6452function getAll( context, tag ) {
6453 var elems, elem,
6454 i = 0,
6455 found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) :
6456 typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) :
6457 undefined;
6458
6459 if ( !found ) {
6460 for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) {
6461 if ( !tag || jQuery.nodeName( elem, tag ) ) {
6462 found.push( elem );
6463 } else {
6464 jQuery.merge( found, getAll( elem, tag ) );
6465 }
6466 }
6467 }
6468
6469 return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
6470 jQuery.merge( [ context ], found ) :
6471 found;
6472}
6473
6474// Used in buildFragment, fixes the defaultChecked property
6475function fixDefaultChecked( elem ) {

Callers 1

jquery.jsFile · 0.70

Calls 2

pushMethod · 0.45
mergeMethod · 0.45

Tested by

no test coverage detected