Commit 9d46c0eb authored by John Resig's avatar John Resig

Switching to use a better check for if the node is a document.

parent d828ff75
......@@ -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],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment