diff options
author | John Resig <jeresig@gmail.com> | 2009-07-18 19:44:15 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-07-18 19:44:15 +0000 |
commit | 9d46c0ebb46037cfcc026e874d459d2cd412294e (patch) | |
tree | c08af189d7363c62a1500a8dee4ed051b2f4f1af /src/dimensions.js | |
parent | d828ff75a45bc1f232e607806c930e98d7256fc6 (diff) | |
download | jquery-9d46c0ebb46037cfcc026e874d459d2cd412294e.tar.gz jquery-9d46c0ebb46037cfcc026e874d459d2cd412294e.zip |
Switching to use a better check for if the node is a document.
Diffstat (limited to 'src/dimensions.js')
-rw-r--r-- | src/dimensions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dimensions.js b/src/dimensions.js index 69cfc4513..a53254d54 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -27,7 +27,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){ elem.document.body[ "client" + name ] : // Get document width or height - (elem.nodeName === "#document") ? // is it a document + (elem.nodeType === 9) ? // is it a document // Either scroll[Width/Height] or offset[Width/Height], whichever is greater Math.max( elem.documentElement["client" + name], |