- // #8099 - If the end-dev has globally changed a default
- // display, we can temporarily disable their styles to check
- // for the correct default value
- jQuery.each( stylesheets, function( idx, obj ) {
- disabled[ idx ] = obj.disabled;
- obj.disabled = true;
- });
-
- // Create a temp element and check it's default display
- elem = jQuery("<" + nodeName + ">").appendTo("body"),
- display = elem.css("display");
-
- // Remove temp element