Use multiply rather than divide for speed.

This commit is contained in:
Oskari 2012-03-06 17:25:29 +02:00 committed by Dave Methvin
parent 077fd7ed6f
commit da70ca6b96

View 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" : "";
},