diff options
author | Timmy Willison <tim.willison@thisismedium.com> | 2011-02-06 19:34:57 -0500 |
---|---|---|
committer | Timmy Willison <tim.willison@thisismedium.com> | 2011-02-06 19:34:57 -0500 |
commit | 82626799cacef94a1b35d0a0b4d284b38104704b (patch) | |
tree | b8e3dd3899e7df419f3834618f6a4f4490cc71db /src/css.js | |
parent | d6fbbe1080fdcaf8eb22753eddf000aeb7d99545 (diff) | |
download | jquery-82626799cacef94a1b35d0a0b4d284b38104704b.tar.gz jquery-82626799cacef94a1b35d0a0b4d284b38104704b.zip |
Changed $.sub internals to match sub naming, added some more spacing in some areas for readability
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/css.js b/src/css.js index 19c6342d2..968188d6e 100644 --- a/src/css.js +++ b/src/css.js @@ -215,8 +215,8 @@ if ( !jQuery.support.opacity ) { jQuery.cssHooks.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) + "" : + return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ? + ( parseFloat( RegExp.$1 ) / 100 ) + "" : computed ? "1" : ""; }, @@ -228,13 +228,13 @@ if ( !jQuery.support.opacity ) { style.zoom = 1; // Set the alpha filter to set the opacity - var opacity = jQuery.isNaN(value) ? - "" : - "alpha(opacity=" + value * 100 + ")", + var opacity = jQuery.isNaN( value ) ? + "" : + "alpha(opacity=" + value * 100 + ")", filter = style.filter || ""; - style.filter = ralpha.test(filter) ? - filter.replace(ralpha, opacity) : + style.filter = ralpha.test( filter ) ? + filter.replace( ralpha, opacity ) : style.filter + ' ' + opacity; } }; |