Skip to content
Permalink
Browse files

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

  • Loading branch information
chrisprice authored and mgol committed Aug 19, 2013
1 parent c418b94 commit 3e3680c2cdc524ee9194ef27fdce318cf301144c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/css.js
@@ -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 ) {

0 comments on commit 3e3680c

Please sign in to comment.
You can’t perform that action at this time.