We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b22c904 commit 0b8b636Copy full SHA for 0b8b636
test/unit/effects.js
@@ -726,6 +726,9 @@ jQuery.each( {
726
var f_h = f( elem, "height" );
727
var t_o = t( elem, "opacity" );
728
var f_o = f( elem, "opacity" );
729
+ if ( f_o === "" ) {
730
+ f_o = 1;
731
+ }
732
733
var num = 0;
734
@@ -759,7 +762,7 @@ jQuery.each( {
759
762
if ( t_h == "hide"||t_h == "show" )
760
763
ok(f_h === "" ? elem.style.height === f_h : elem.style.height.indexOf(f_h) === 0, "Height must be reset to " + f_h + ": " + elem.style.height);
761
764
- var cur_o = jQuery.style(elem, "opacity");
765
+ var cur_o = jQuery.css(elem, "opacity");
766
767
if ( t_o == "hide" || t_o == "show" )
768
equals(cur_o, f_o, "Opacity must be reset to " + f_o + ": " + cur_o);
0 commit comments