mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
No ticket: Reduce size in anticipation of Sizzle-free builds
(cherry picked from commit dbf3056b25)
This commit is contained in:
@@ -125,13 +125,13 @@ 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;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user