mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fix #14150: revert to ownerDocument.defaultView.getComputedStyle. Close gh-1311.
This commit is contained in:
parent
c418b94eb4
commit
3e3680c2cd
@ -53,7 +53,7 @@ function vendorPropName( style, name ) {
|
|||||||
// NOTE: we've included the "window" in window.getComputedStyle
|
// NOTE: we've included the "window" in window.getComputedStyle
|
||||||
// because jsdom on node.js will break without it.
|
// because jsdom on node.js will break without it.
|
||||||
function getStyles( elem ) {
|
function getStyles( elem ) {
|
||||||
return window.getComputedStyle( elem, null );
|
return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
|
||||||
}
|
}
|
||||||
|
|
||||||
function showHide( elements, show ) {
|
function showHide( elements, show ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user