mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 13:14:59 -05:00
Build: update grunt-jscs-checker and pass with the new rules
This commit is contained in:
@@ -118,7 +118,8 @@ jQuery.fn.extend({
|
||||
elem = this[ 0 ],
|
||||
parentOffset = { top: 0, left: 0 };
|
||||
|
||||
// Fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent
|
||||
// Fixed elements are offset from window (parentOffset = {top:0, left: 0},
|
||||
// because it is its only offset parent
|
||||
if ( jQuery.css( elem, "position" ) === "fixed" ) {
|
||||
// Assume getBoundingClientRect is there when computed position is fixed
|
||||
offset = elem.getBoundingClientRect();
|
||||
@@ -149,7 +150,8 @@ 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user