MCPcopy Create free account
hub / github.com/TruthHun/BookStack / actualDisplay

Function actualDisplay

static/wangEditor/js/lib/jquery-2.2.1.js:5587–5597  ·  view source on GitHub ↗
( name, doc )

Source from the content-addressed store, hash-verified

5585
5586// Called only from within defaultDisplay
5587function actualDisplay( name, doc ) {
5588 var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
5589
5590 display = jQuery.css( elem[ 0 ], "display" );
5591
5592 // We don't have any data stored on the element,
5593 // so use "detach" method as fast way to get rid of the element
5594 elem.detach();
5595
5596 return display;
5597}
5598
5599/**
5600 * Try to determine the default display value of an element

Callers 1

defaultDisplayFunction · 0.70

Calls 1

jQueryFunction · 0.70

Tested by

no test coverage detected