Commit ed087197 authored by Brandon Aaron's avatar Brandon Aaron

tidy up fix for #3981, thanks matt kruse

parent ec3ebd3e
......@@ -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 === "" ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment