aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorOskari <admin@o-programs.com>2012-03-06 17:25:29 +0200
committerDave Methvin <dave.methvin@gmail.com>2012-04-04 22:14:33 -0400
commitda70ca6b9629b821d9b0a7e11dee61a5d972f06b (patch)
tree4d264d859a8cd619ad1738c15ca068beba582499 /src/css.js
parent077fd7ed6f7c330a957b9c58b805e6cc3f48be82 (diff)
downloadjquery-da70ca6b9629b821d9b0a7e11dee61a5d972f06b.tar.gz
jquery-da70ca6b9629b821d9b0a7e11dee61a5d972f06b.zip
Use multiply rather than divide for speed.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js
index 960ac5ae6..c1775b7ab 100644
--- a/src/css.js
+++ b/src/css.js
@@ -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" : "";
},