MCPcopy Create free account
hub / github.com/sql-js/sql.js / siblingCheck

Function siblingCheck

documentation/javascript/application.js:5427–5443  ·  view source on GitHub ↗
( a, b, ret )

Source from the content-addressed store, hash-verified

5425};
5426
5427function siblingCheck( a, b, ret ) {
5428 if ( a === b ) {
5429 return ret;
5430 }
5431
5432 var cur = a.nextSibling;
5433
5434 while ( cur ) {
5435 if ( cur === b ) {
5436 return -1;
5437 }
5438
5439 cur = cur.nextSibling;
5440 }
5441
5442 return 1;
5443}
5444
5445sortOrder = docElem.compareDocumentPosition ?
5446 function( a, b ) {

Callers 1

application.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…