]> source.dussan.org Git - jquery.git/commitdiff
Landing pull request 467. Adds comments regarding opacity test adjustments.
authorRick Waldron <waldron.rick@gmail.com>
Wed, 17 Aug 2011 21:06:21 +0000 (17:06 -0400)
committertimmywil <timmywillisn@gmail.com>
Wed, 17 Aug 2011 21:06:21 +0000 (17:06 -0400)
More Details:
 - https://github.com/jquery/jquery/pull/467

test/unit/effects.js

index 6ff1ce5c3fc890ac15e5fef9cedd4b51e6709b65..3afc37f69de41fab1e6c4118e57f364256a555a4 100644 (file)
@@ -772,10 +772,12 @@ jQuery.each( {
                                        f_o = f( elem, "opacity" );
                                }
 
+                               // The only time an _empty_string_ will be matched is in IE
+                               // otherwise, the correct values will be tested as usual
                                if ( f_o === "" ) {
                                        f_o = 1;
                                }
-
+                               // See above
                                if ( cur_o === "" ) {
                                        cur_o = 1;
                                }