MCPcopy Index your code
hub / github.com/documentcloud/visualsearch / siblingCheck

Function siblingCheck

build-min/dependencies.js:50–53  ·  view source on GitHub ↗
(a,b)

Source from the content-addressed store, hash-verified

48div=null;}}
49function addHandle(attrs,handler){var arr=attrs.split("|"),i=attrs.length;while(i--){Expr.attrHandle[arr[i]]=handler;}}
50function siblingCheck(a,b){var cur=b&&a,diff=cur&&a.nodeType===1&&b.nodeType===1&&(~b.sourceIndex||MAX_NEGATIVE)-
51(~a.sourceIndex||MAX_NEGATIVE);if(diff){return diff;}
52if(cur){while((cur=cur.nextSibling)){if(cur===b){return-1;}}}
53return a?1:-1;}
54function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type;};}
55function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&elem.type===type;};}
56function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;while(i--){if(seed[(j=matchIndexes[i])]){seed[j]=!(matches[j]=seed[j]);}}});});}

Callers 1

dependencies.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected