Skip to content

Commit 7ae6be0

Browse files
committed
Fixed JSHint notices
1 parent e6795cb commit 7ae6be0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/web/mage/sticky.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ define([
5151
isStatic = this.element.css('position') === 'static';
5252

5353
if (!isStatic && this.element.is(':visible')) {
54-
offset = $(document).scrollTop()
55-
- this.parentOffset
56-
+ this._getOptionValue('spacingTop');
54+
offset = $(document).scrollTop() -
55+
this.parentOffset +
56+
this._getOptionValue('spacingTop');
5757

5858
offset = Math.max(0, Math.min(offset, this.maxOffset));
5959

0 commit comments

Comments
 (0)