File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,9 @@ var iframe,
1313 */
1414// Called only from within defaultDisplay
1515function actualDisplay ( name , doc ) {
16- var style ,
17- elem = jQuery ( doc . createElement ( name ) ) . appendTo ( doc . body ) ,
16+ var elem = jQuery ( doc . createElement ( name ) ) . appendTo ( doc . body ) ,
1817
19- // getDefaultComputedStyle might be reliably used only on attached element
20- display = window . getDefaultComputedStyle &&
21- ( style = window . getDefaultComputedStyle ( elem [ 0 ] ) ) ?
22-
23- // Use of this method is a temporary fix (more like optmization)
24- // until something better comes along,
25- // since it was removed from specification and supported only in FF
26- style . display : jQuery . css ( elem [ 0 ] , "display" ) ;
18+ display = jQuery . css ( elem [ 0 ] , "display" ) ;
2719
2820 // We don't have any data stored on the element,
2921 // so use "detach" method as fast way to get rid of the element
You can’t perform that action at this time.
0 commit comments