Specify support as a dependency wherever it is used. Optimize module order to save 15 bytes.

This commit is contained in:
Timmy Willison
2013-08-15 20:38:48 -04:00
parent 7877c4fa73
commit cecb52ff5c
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;
@@ -136,7 +136,7 @@ jQuery.fn.extend({
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;
}