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:
Timmy Willison
2013-08-15 20:38:48 -04:00
parent f5b1a8eab7
commit 7315861813
10 changed files with 21 additions and 12 deletions

View File

@@ -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;