]> source.dussan.org Git - jquery.git/commitdiff
Use multiply rather than divide for speed.
authorOskari <admin@o-programs.com>
Tue, 6 Mar 2012 15:25:29 +0000 (17:25 +0200)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 5 Apr 2012 02:14:33 +0000 (22:14 -0400)
src/css.js

index 960ac5ae6e059abee7ec247ad5fdcb055d625155..c1775b7abca1cfa4e5003dd61c64390b4d464e25 100644 (file)
@@ -320,7 +320,7 @@ if ( !jQuery.support.opacity ) {
                get: function( elem, computed ) {
                        // IE uses filters for opacity
                        return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
-                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :
+                               ( 0.01 * parseFloat( RegExp.$1 ) ) + "" :
                                computed ? "1" : "";
                },