Skip to content
Permalink
Browse files

No ticket: Reduce size in anticipation of Sizzle-free builds

(cherry picked from commit dbf3056)
  • Loading branch information...
gibson042 committed Feb 22, 2013
1 parent 85ee87b commit 9338a69e307c0051ef50d6365c5f45872a9d7ef7
Showing with 4 additions and 3 deletions.
  1. +2 −1 src/core.js
  2. +2 −2 src/offset.js
@@ -10,8 +10,9 @@ var
core_strundefined = typeof undefined,

// Use the correct document accordingly with window argument (sandbox)
document = window.document,
location = window.location,
document = window.document,
docElem = document.documentElement,

// Map over jQuery in case of overwrite
_jQuery = window.jQuery,
@@ -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;
});
}
});

0 comments on commit 9338a69

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.