mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Use multiply rather than divide for speed.
This commit is contained in:
parent
077fd7ed6f
commit
da70ca6b96
@ -320,7 +320,7 @@ if ( !jQuery.support.opacity ) {
|
|||||||
get: function( elem, computed ) {
|
get: function( elem, computed ) {
|
||||||
// IE uses filters for opacity
|
// IE uses filters for opacity
|
||||||
return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
|
return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
|
||||||
( parseFloat( RegExp.$1 ) / 100 ) + "" :
|
( 0.01 * parseFloat( RegExp.$1 ) ) + "" :
|
||||||
computed ? "1" : "";
|
computed ? "1" : "";
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user