aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Price <price.c@gmail.com>2013-08-19 18:10:11 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2013-08-19 18:10:25 +0200
commit3e3680c2cdc524ee9194ef27fdce318cf301144c (patch)
tree55db52b6d2fa798c017fdb2fa942cbb296165886
parentc418b94eb48188cd9329519ae5e030a52dd81cc9 (diff)
downloadjquery-3e3680c2cdc524ee9194ef27fdce318cf301144c.tar.gz
jquery-3e3680c2cdc524ee9194ef27fdce318cf301144c.zip
Fix #14150: revert to ownerDocument.defaultView.getComputedStyle. Close gh-1311.
-rw-r--r--src/css.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js
index 16c093bd7..caad0076a 100644
--- a/src/css.js
+++ b/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 ) {