MCPcopy
hub / github.com/documentcloud/visualsearch / assert

Function assert

build-min/dependencies.js:47–48  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

45return cache;}
46function markFunction(fn){fn[expando]=true;return fn;}
47function assert(fn){var div=document.createElement("div");try{return!!fn(div);}catch(e){return false;}finally{if(div.parentNode){div.parentNode.removeChild(div);}
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;}

Callers 1

dependencies.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected