aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-02-22 16:33:52 -0500
committerRichard Gibson <richard.gibson@gmail.com>2013-02-22 16:33:52 -0500
commitdbf3056b250bbc279fa947031181f9e25a40bacf (patch)
treec0c9f4180cb36210830c320fdcd298e3690b1a91 /src/offset.js
parent6cb58e4861e7b4fa03026a826d38853f4090e08b (diff)
downloadjquery-dbf3056b250bbc279fa947031181f9e25a40bacf.tar.gz
jquery-dbf3056b250bbc279fa947031181f9e25a40bacf.zip
No ticket: Reduce size in anticipation of Sizzle-free builds
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/offset.js b/src/offset.js
index 4efb962ff..e6fd3574c 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -123,11 +123,11 @@ jQuery.fn.extend({
offsetParent: function() {
return this.map(function() {
- var offsetParent = this.offsetParent || document.documentElement;
+ var offsetParent = this.offsetParent || docElem;
while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position") === "static" ) ) {
offsetParent = offsetParent.offsetParent;
}
- return offsetParent || document.documentElement;
+ return offsetParent || docElem;
});
}
});