git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d828ff7
)
Switching to use a better check for if the node is a document.
author
John Resig
<jeresig@gmail.com>
Sat, 18 Jul 2009 19:44:15 +0000
(19:44 +0000)
committer
John Resig
<jeresig@gmail.com>
Sat, 18 Jul 2009 19:44:15 +0000
(19:44 +0000)
src/dimensions.js
patch
|
blob
|
history
diff --git
a/src/dimensions.js
b/src/dimensions.js
index
69cfc45
..
a53254d
100644
(file)
--- 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],