MCPcopy
hub / github.com/nbubna/store / assert

Function assert

libs/jquery/jquery.js:3864–3875  ·  view source on GitHub ↗

* Support testing using an element * @param {Function} fn Passed the created div and expects a boolean result

( fn )

Source from the content-addressed store, hash-verified

3862 * @param {Function} fn Passed the created div and expects a boolean result
3863 */
3864function assert( fn ) {
3865 var div = document.createElement("div");
3866
3867 try {
3868 return fn( div );
3869 } catch (e) {
3870 return false;
3871 } finally {
3872 // release memory in IE
3873 div = null;
3874 }
3875}
3876
3877function Sizzle( selector, context, results, seed ) {
3878 var match, elem, m, nodeType,

Callers 1

jquery.jsFile · 0.85

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…