MCPcopy
hub / github.com/jquery-backstretch/jquery-backstretch / assert

Function assert

libs/jquery/jquery.js:3797–3808  ·  view source on GitHub ↗
( fn )

Source from the content-addressed store, hash-verified

3795
3796 // Used for testing something on an element
3797 assert = function( fn ) {
3798 var div = document.createElement("div");
3799
3800 try {
3801 return fn( div );
3802 } catch (e) {
3803 return false;
3804 } finally {
3805 // release memory in IE
3806 div = null;
3807 }
3808 },
3809
3810 // Check if getElementsByTagName("*") returns only elements
3811 assertTagNameNoComments = assert(function( div ) {

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected