mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 18:08:30 -05:00
Fix #14150: revert to ownerDocument.defaultView.getComputedStyle. Close gh-1311. (cherry-picked from 3e3680c2cd)
This commit is contained in:
committed by
Michał Gołębiowski
parent
7dfe0ad191
commit
b414efdd8e
@@ -291,7 +291,7 @@ jQuery.extend({
|
||||
// because jsdom on node.js will break without it.
|
||||
if ( window.getComputedStyle ) {
|
||||
getStyles = function( elem ) {
|
||||
return window.getComputedStyle( elem, null );
|
||||
return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
|
||||
};
|
||||
|
||||
curCSS = function( elem, name, _computed ) {
|
||||
|
||||
Reference in New Issue
Block a user