Permalink
Browse files

Use multiply rather than divide for speed.

  • Loading branch information...
1 parent 077fd7e commit da70ca6b9629b821d9b0a7e11dee61a5d972f06b Oskari committed with dmethvin Mar 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/css.js
View
@@ -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" : "";
},

0 comments on commit da70ca6

Please sign in to comment.