Fix #14150: revert to ownerDocument.defaultView.getComputedStyle. Close gh-1311. (cherry-picked from 3e3680c2cd)

This commit is contained in:
Chris Price
2013-08-19 18:12:46 +02:00
committed by Michał Gołębiowski
parent 7dfe0ad191
commit b414efdd8e

View File

@@ -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 ) {