mirror of
https://github.com/jquery/jquery.git
synced 2026-02-05 11:05:36 -05:00
Specify support as a dependency wherever it is used. Optimize module order to save 15 bytes.
Conflicts: src/css.js src/manipulation.js src/offset.js src/support.js
This commit is contained in:
@@ -2,7 +2,7 @@ define([
|
||||
"./core",
|
||||
"./var/strundefined",
|
||||
"./css",
|
||||
"./selector"
|
||||
"./selector" // contains
|
||||
], function( jQuery, strundefined ) {
|
||||
|
||||
var docElem = window.document.documentElement;
|
||||
@@ -133,7 +133,8 @@ jQuery.fn.extend({
|
||||
offsetParent: function() {
|
||||
return this.map(function() {
|
||||
var offsetParent = this.offsetParent || docElem;
|
||||
while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position") === "static" ) ) {
|
||||
|
||||
while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position" ) === "static" ) ) {
|
||||
offsetParent = offsetParent.offsetParent;
|
||||
}
|
||||
return offsetParent || docElem;
|
||||
|
||||
Reference in New Issue
Block a user