tidy up fix for #3981, thanks matt kruse
This commit is contained in:
parent
ec3ebd3e8a
commit
ed087197ce
12
src/css.js
12
src/css.js
|
@ -123,15 +123,9 @@ jQuery.extend({
|
||||||
var ret, style = elem.style, filter;
|
var ret, style = elem.style, filter;
|
||||||
|
|
||||||
// IE uses filters for opacity
|
// IE uses filters for opacity
|
||||||
if ( !jQuery.support.opacity && name == "opacity" ) {
|
if ( !jQuery.support.opacity && name === "opacity" && elem.currentStyle ) {
|
||||||
filter = (filter = style.filter) && filter.indexOf("opacity=") >= 0 ?
|
ret = (elem.currentStyle.filter || "").match(/opacity=([^)]*)/) ?
|
||||||
filter :
|
(parseFloat(RegExp.$1) / 100) + "" :
|
||||||
(filter = elem.currentStyle[ 'filter' ]) && filter.indexOf("opacity=") >= 0 ?
|
|
||||||
filter :
|
|
||||||
null;
|
|
||||||
|
|
||||||
ret = filter && filter.indexOf("opacity=") >= 0 ?
|
|
||||||
(parseFloat( filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
|
|
||||||
"";
|
"";
|
||||||
|
|
||||||
return ret === "" ?
|
return ret === "" ?
|
||||||
|
|
Loading…
Reference in a new issue