]> source.dussan.org Git - jquery.git/commitdiff
Fix #14150: revert to ownerDocument.defaultView.getComputedStyle. Close gh-1311.
authorChris Price <price.c@gmail.com>
Mon, 19 Aug 2013 16:10:11 +0000 (18:10 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 19 Aug 2013 16:10:25 +0000 (18:10 +0200)
src/css.js

index 16c093bd74069120516685764f9b585ccff32a27..caad0076a3f964756a14db025ba5240f83b1fbce 100644 (file)
@@ -53,7 +53,7 @@ function vendorPropName( style, name ) {
 // NOTE: we've included the "window" in window.getComputedStyle
 // because jsdom on node.js will break without it.
 function getStyles( elem ) {
-       return window.getComputedStyle( elem, null );
+       return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
 }
 
 function showHide( elements, show ) {