mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Make sure that the CSS hook getter isn't called if a forced computed style is done.
This commit is contained in:
parent
70377a65e2
commit
c36596ea58
@ -71,11 +71,10 @@ jQuery.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if ( "get" in hooks && (ret = hooks.get( elem, force, extra )) !== undefined ) {
|
if ( !force && "get" in hooks && (ret = hooks.get( elem, force, extra )) !== undefined ) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
|
|
||||||
if ( !force && style && style[ name ] ) {
|
} else if ( !force && style[ name ] ) {
|
||||||
ret = style[ name ];
|
ret = style[ name ];
|
||||||
|
|
||||||
} else if ( curCSS ) {
|
} else if ( curCSS ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user