Skip to content
Permalink
Browse files

jQuery.contains() handles document objects directly. Close gh-879.

  • Loading branch information...
markelog authored and dmethvin committed Aug 20, 2012
1 parent ff7b7cf commit 109d91070151acdb19ed2c9c06c9dcb5b8930807
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/css.js
@@ -289,7 +289,7 @@ if ( window.getComputedStyle ) {
if ( computed ) {

ret = computed[ name ];
if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
ret = jQuery.style( elem, name );
}

0 comments on commit 109d910

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