MCPcopy
hub / github.com/RubyLouvre/anu / actualDisplay

Function actualDisplay

test/jquery.js:6442–6452  ·  view source on GitHub ↗
( name, doc )

Source from the content-addressed store, hash-verified

6440
6441// Called only from within defaultDisplay
6442function actualDisplay( name, doc ) {
6443 var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
6444
6445 display = jQuery.css( elem[ 0 ], "display" );
6446
6447 // We don't have any data stored on the element,
6448 // so use "detach" method as fast way to get rid of the element
6449 elem.detach();
6450
6451 return display;
6452}
6453
6454/**
6455 * Try to determine the default display value of an element

Callers 1

defaultDisplayFunction · 0.85

Calls 1

jQueryFunction · 0.85

Tested by

no test coverage detected