Commit b414efdd authored by Chris Price's avatar Chris Price Committed by Michał Gołębiowski

Fix #14150: revert to ownerDocument.defaultView.getComputedStyle. Close...

Fix #14150: revert to ownerDocument.defaultView.getComputedStyle. Close gh-1311. (cherry-picked from 3e3680c2)
parent 7dfe0ad1
......@@ -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 ) {
......
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