Skip to content
Permalink
Browse files

tidy up fix for #3981, thanks matt kruse

  • Loading branch information
brandonaaron committed May 14, 2009
1 parent ec3ebd3 commit ed087197cef89ce79cbd6b4ab49f184f3b259602
Showing with 3 additions and 9 deletions.
  1. +3 −9 src/css.js
@@ -123,15 +123,9 @@ jQuery.extend({
var ret, style = elem.style, filter;

// IE uses filters for opacity
if ( !jQuery.support.opacity && name == "opacity" ) {
filter = (filter = style.filter) && filter.indexOf("opacity=") >= 0 ?
filter :
(filter = elem.currentStyle[ 'filter' ]) && filter.indexOf("opacity=") >= 0 ?
filter :
null;

ret = filter && filter.indexOf("opacity=") >= 0 ?
(parseFloat( filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
if ( !jQuery.support.opacity && name === "opacity" && elem.currentStyle ) {
ret = (elem.currentStyle.filter || "").match(/opacity=([^)]*)/) ?
(parseFloat(RegExp.$1) / 100) + "" :
"";

return ret === "" ?

0 comments on commit ed08719

Please sign in to comment.
You can’t perform that action at this time.