MCPcopy Create free account
hub / github.com/idank/explainshell / assert

Function assert

explainshell/web/static/js/jquery.js:3878–3889  ·  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

3876 * @param {Function} fn Passed the created div and expects a boolean result
3877 */
3878function assert( fn ) {
3879 var div = document.createElement("div");
3880
3881 try {
3882 return fn( div );
3883 } catch (e) {
3884 return false;
3885 } finally {
3886 // release memory in IE
3887 div = null;
3888 }
3889}
3890
3891function Sizzle( selector, context, results, seed ) {
3892 var match, elem, m, nodeType,

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected