Skip to content

Commit ecd03c0

Browse files
committed
Chore: use better var names in position()
1 parent f93800f commit ecd03c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/query/src/query.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,8 +2348,8 @@ export class Query {
23482348
const results = this.map(el => {
23492349
const $el = this.chain(el);
23502350
const elRect = $el.dimensions();
2351-
const $parent = $el.positioningParent();
2352-
const parentRect = $parent.dimensions();
2351+
const $positioningParent = $el.positioningParent();
2352+
const parentRect = $positioningParent.dimensions();
23532353
const round = val => (precision === 'pixel' ? Math.round(val) : val);
23542354

23552355
// 1. Global (Viewport) Coordinates
@@ -2399,13 +2399,13 @@ export class Query {
23992399
$reference = this.chain(window);
24002400
}
24012401
else if (type === 'local') {
2402-
$reference = parent;
2402+
$reference = $positioningParent;
24032403
}
24042404
else if ($relative) {
24052405
$reference = $relative;
24062406
}
24072407
else {
2408-
$reference = $parent;
2408+
$reference = $positioningParent;
24092409
}
24102410
const referenceRect = $reference.dimensions();
24112411

0 commit comments

Comments
 (0)