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

Commit 07831c5

Browse files
authored
version: patch version bump (#659)
1 parent 3766e60 commit 07831c5

File tree

9 files changed

+39
-39
lines changed

9 files changed

+39
-39
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defaults: &defaults
22
working_directory: ~/code
33
docker:
4-
- image: circleci/node:10
4+
- image: circleci/node:12
55
environment:
66
NPM_CONFIG_LOGLEVEL: error # make npm commands less noisy
77
JOBS: max # https://gist.github.com/ralphtheninja/f7c45bdee00784b41fed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10
1+
12

dist/jquery.stickybits.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
stickybits - Stickybits is a lightweight alternative to `position: sticky` polyfills
3-
@version v3.7.3
3+
@version v3.7.4
44
@link https://github.com/dollarshaveclub/stickybits#readme
55
@author Jeff Wainwright <[email protected]> (https://jeffry.in)
66
@license MIT
@@ -90,7 +90,7 @@
9090
var _this = this;
9191

9292
var o = typeof obj !== 'undefined' ? obj : {};
93-
this.version = '3.7.3';
93+
this.version = '3.7.4';
9494
this.userAgent = window.navigator.userAgent || 'no `userAgent` provided by the browser';
9595
this.props = {
9696
customStickyChangeNumber: o.customStickyChangeNumber || null,
@@ -137,7 +137,8 @@
137137
this.props.applyStyle({
138138
styles: (_styles = {}, _styles[verticalPosition] = verticalPositionStyle, _styles.position = positionStyle, _styles),
139139
classes: {}
140-
}, instance); // instances are an array of objects
140+
}, instance);
141+
this.manageState(instance); // instances are an array of objects
141142

142143
this.instances.push(instance);
143144
}
@@ -325,8 +326,6 @@
325326
;
326327

327328
_proto.manageState = function manageState(item) {
328-
var _this3 = this;
329-
330329
// cache object
331330
var it = item;
332331
var p = it.props;
@@ -344,6 +343,7 @@
344343
var vp = p.verticalPosition;
345344
var isTop = vp !== 'bottom';
346345
var aS = p.applyStyle;
346+
var ns = p.noStyles;
347347
/*
348348
requestAnimationFrame
349349
---
@@ -413,7 +413,7 @@
413413
classes: {}
414414
},
415415
stuck: {
416-
styles: _extends((_extends2 = {}, _extends2[vp] = '', _extends2), pv === 'fixed' || !_this3.isWin ? {
416+
styles: _extends((_extends2 = {}, _extends2[vp] = '', _extends2), pv === 'fixed' && !ns ? {
417417
position: 'absolute',
418418
top: '',
419419
bottom: '0'
@@ -477,14 +477,14 @@
477477
};
478478

479479
_proto.update = function update(updatedProps) {
480-
var _this4 = this;
480+
var _this3 = this;
481481

482482
if (updatedProps === void 0) {
483483
updatedProps = null;
484484
}
485485

486486
this.instances.forEach(function (instance) {
487-
_this4.computeScrollOffsets(instance);
487+
_this3.computeScrollOffsets(instance);
488488

489489
if (updatedProps) {
490490
// eslint-disable-next-line no-unused-vars

dist/jquery.stickybits.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/stickybits.es.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
stickybits - Stickybits is a lightweight alternative to `position: sticky` polyfills
3-
@version v3.7.3
3+
@version v3.7.4
44
@link https://github.com/dollarshaveclub/stickybits#readme
55
@author Jeff Wainwright <[email protected]> (https://jeffry.in)
66
@license MIT
@@ -85,7 +85,7 @@ function () {
8585
var _this = this;
8686

8787
var o = typeof obj !== 'undefined' ? obj : {};
88-
this.version = '3.7.3';
88+
this.version = '3.7.4';
8989
this.userAgent = window.navigator.userAgent || 'no `userAgent` provided by the browser';
9090
this.props = {
9191
customStickyChangeNumber: o.customStickyChangeNumber || null,
@@ -132,7 +132,8 @@ function () {
132132
this.props.applyStyle({
133133
styles: (_styles = {}, _styles[verticalPosition] = verticalPositionStyle, _styles.position = positionStyle, _styles),
134134
classes: {}
135-
}, instance); // instances are an array of objects
135+
}, instance);
136+
this.manageState(instance); // instances are an array of objects
136137

137138
this.instances.push(instance);
138139
}
@@ -320,8 +321,6 @@ function () {
320321
;
321322

322323
_proto.manageState = function manageState(item) {
323-
var _this3 = this;
324-
325324
// cache object
326325
var it = item;
327326
var p = it.props;
@@ -339,6 +338,7 @@ function () {
339338
var vp = p.verticalPosition;
340339
var isTop = vp !== 'bottom';
341340
var aS = p.applyStyle;
341+
var ns = p.noStyles;
342342
/*
343343
requestAnimationFrame
344344
---
@@ -408,7 +408,7 @@ function () {
408408
classes: {}
409409
},
410410
stuck: {
411-
styles: _extends((_extends2 = {}, _extends2[vp] = '', _extends2), pv === 'fixed' || !_this3.isWin ? {
411+
styles: _extends((_extends2 = {}, _extends2[vp] = '', _extends2), pv === 'fixed' && !ns ? {
412412
position: 'absolute',
413413
top: '',
414414
bottom: '0'
@@ -472,14 +472,14 @@ function () {
472472
};
473473

474474
_proto.update = function update(updatedProps) {
475-
var _this4 = this;
475+
var _this3 = this;
476476

477477
if (updatedProps === void 0) {
478478
updatedProps = null;
479479
}
480480

481481
this.instances.forEach(function (instance) {
482-
_this4.computeScrollOffsets(instance);
482+
_this3.computeScrollOffsets(instance);
483483

484484
if (updatedProps) {
485485
// eslint-disable-next-line no-unused-vars

dist/stickybits.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
stickybits - Stickybits is a lightweight alternative to `position: sticky` polyfills
3-
@version v3.7.3
3+
@version v3.7.4
44
@link https://github.com/dollarshaveclub/stickybits#readme
55
@author Jeff Wainwright <[email protected]> (https://jeffry.in)
66
@license MIT
@@ -91,7 +91,7 @@
9191
var _this = this;
9292

9393
var o = typeof obj !== 'undefined' ? obj : {};
94-
this.version = '3.7.3';
94+
this.version = '3.7.4';
9595
this.userAgent = window.navigator.userAgent || 'no `userAgent` provided by the browser';
9696
this.props = {
9797
customStickyChangeNumber: o.customStickyChangeNumber || null,
@@ -138,7 +138,8 @@
138138
this.props.applyStyle({
139139
styles: (_styles = {}, _styles[verticalPosition] = verticalPositionStyle, _styles.position = positionStyle, _styles),
140140
classes: {}
141-
}, instance); // instances are an array of objects
141+
}, instance);
142+
this.manageState(instance); // instances are an array of objects
142143

143144
this.instances.push(instance);
144145
}
@@ -326,8 +327,6 @@
326327
;
327328

328329
_proto.manageState = function manageState(item) {
329-
var _this3 = this;
330-
331330
// cache object
332331
var it = item;
333332
var p = it.props;
@@ -345,6 +344,7 @@
345344
var vp = p.verticalPosition;
346345
var isTop = vp !== 'bottom';
347346
var aS = p.applyStyle;
347+
var ns = p.noStyles;
348348
/*
349349
requestAnimationFrame
350350
---
@@ -414,7 +414,7 @@
414414
classes: {}
415415
},
416416
stuck: {
417-
styles: _extends((_extends2 = {}, _extends2[vp] = '', _extends2), pv === 'fixed' || !_this3.isWin ? {
417+
styles: _extends((_extends2 = {}, _extends2[vp] = '', _extends2), pv === 'fixed' && !ns ? {
418418
position: 'absolute',
419419
top: '',
420420
bottom: '0'
@@ -478,14 +478,14 @@
478478
};
479479

480480
_proto.update = function update(updatedProps) {
481-
var _this4 = this;
481+
var _this3 = this;
482482

483483
if (updatedProps === void 0) {
484484
updatedProps = null;
485485
}
486486

487487
this.instances.forEach(function (instance) {
488-
_this4.computeScrollOffsets(instance);
488+
_this3.computeScrollOffsets(instance);
489489

490490
if (updatedProps) {
491491
// eslint-disable-next-line no-unused-vars

0 commit comments

Comments
 (0)