Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 33bd68e

Browse files
author
tjdo
committed
fixed references to $body
1 parent 89f33b7 commit 33bd68e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utility.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ function computePositionCompensation(windowWidth, windowHeight) {
216216
var bodyWidthWithMargin,
217217
bodyHeightWithMargin,
218218
offsets,
219-
bodyPositionPx;
219+
bodyPositionPx,
220+
$body = $('body');
220221

221222
switch ($body.css('position')) {
222223
case 'absolute':

0 commit comments

Comments
 (0)