mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 13:34:59 -05:00
Build: update grunt-jscs-checker and pass with the new rules
This commit is contained in:
@@ -17,11 +17,15 @@ function actualDisplay( name, doc ) {
|
||||
elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
|
||||
|
||||
// getDefaultComputedStyle might be reliably used only on attached element
|
||||
display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?
|
||||
display = window.getDefaultComputedStyle &&
|
||||
( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?
|
||||
|
||||
// Use of this method is a temporary fix (more like optimization) until something better comes along,
|
||||
// since it was removed from specification and supported only in FF
|
||||
style.display : jQuery.css( elem[ 0 ], "display" );
|
||||
// Use of this method is a temporary fix (more like optimization)
|
||||
// until something better comes along,
|
||||
// since it was removed from specification and supported only in FF
|
||||
style.display :
|
||||
|
||||
jQuery.css( elem[ 0 ], "display" );
|
||||
|
||||
// We don't have any data stored on the element,
|
||||
// so use "detach" method as fast way to get rid of the element
|
||||
@@ -45,7 +49,8 @@ function defaultDisplay( nodeName ) {
|
||||
if ( display === "none" || !display ) {
|
||||
|
||||
// Use the already-created iframe if possible
|
||||
iframe = (iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" )).appendTo( doc.documentElement );
|
||||
iframe = (iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" ))
|
||||
.appendTo( doc.documentElement );
|
||||
|
||||
// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
|
||||
doc = iframe[ 0 ].contentDocument;
|
||||
|
||||
Reference in New Issue
Block a user