diff options
author | John Resig <jeresig@gmail.com> | 2011-04-12 16:05:40 -0400 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2011-04-12 16:05:40 -0400 |
commit | 978c0655550ffbe32d977dbc997082e287c3a2b8 (patch) | |
tree | ad219d7cc4850f8def53f4d7aaed841c345447b9 /src/css.js | |
parent | e7787cd09805583ff690d9c5e4b4c58a88393bf9 (diff) | |
parent | 82626799cacef94a1b35d0a0b4d284b38104704b (diff) | |
download | jquery-978c0655550ffbe32d977dbc997082e287c3a2b8.tar.gz jquery-978c0655550ffbe32d977dbc997082e287c3a2b8.zip |
Merge branch 'Sub_Naming' of https://github.com/timmywil/jquery into timmywil-Sub_Naming
Conflicts:
src/core.js
src/css.js
src/event.js
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/css.js b/src/css.js index b2d3af655..c5c01ecac 100644 --- a/src/css.js +++ b/src/css.js @@ -231,8 +231,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" : ""; }, @@ -245,13 +245,13 @@ if ( !jQuery.support.opacity ) { style.zoom = 1; // Set the alpha filter to set the opacity - var opacity = jQuery.isNaN(value) ? + var opacity = jQuery.isNaN( value ) ? "" : "alpha(opacity=" + value * 100 + ")", filter = currentStyle && currentStyle.filter || style.filter || ""; - style.filter = ralpha.test(filter) ? - filter.replace(ralpha, opacity) : + style.filter = ralpha.test( filter ) ? + filter.replace( ralpha, opacity ) : filter + " " + opacity; } }; |