File tree 1 file changed +2
-12
lines changed 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -13,19 +13,9 @@ var iframe,
13
13
*/
14
14
// Called only from within defaultDisplay
15
15
function 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 ) ,
18
17
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 optimization)
24
- // until something better comes along,
25
- // since it was removed from specification and supported only in FF
26
- style . display :
27
-
28
- jQuery . css ( elem [ 0 ] , "display" ) ;
18
+ display = jQuery . css ( elem [ 0 ] , "display" ) ;
29
19
30
20
// We don't have any data stored on the element,
31
21
// 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