Skip to content

Commit 5ec1dfb

Browse files
committed
bump version
1 parent 9b29b13 commit 5ec1dfb

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

dist/countUp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var CountUp = /** @class */ (function () {
1515
var _this = this;
1616
this.endVal = endVal;
1717
this.options = options;
18-
this.version = '2.3.0';
18+
this.version = '2.3.1';
1919
this.defaults = {
2020
startVal: 0,
2121
decimalPlaces: 0,
@@ -139,7 +139,7 @@ var CountUp = /** @class */ (function () {
139139
this.error = '[CountUp] target is null or undefined';
140140
}
141141
// scroll spy
142-
if (window !== undefined && this.options.enableScrollSpy) {
142+
if (typeof window !== 'undefined' && this.options.enableScrollSpy) {
143143
if (!this.error) {
144144
// set up global array of onscroll functions
145145
window['onScrollFns'] = window['onScrollFns'] || [];

dist/countUp.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/countUp.umd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
var _this = this;
2222
this.endVal = endVal;
2323
this.options = options;
24-
this.version = '2.3.0';
24+
this.version = '2.3.1';
2525
this.defaults = {
2626
startVal: 0,
2727
decimalPlaces: 0,
@@ -145,7 +145,7 @@
145145
this.error = '[CountUp] target is null or undefined';
146146
}
147147
// scroll spy
148-
if (window !== undefined && this.options.enableScrollSpy) {
148+
if (typeof window !== 'undefined' && this.options.enableScrollSpy) {
149149
if (!this.error) {
150150
// set up global array of onscroll functions
151151
window['onScrollFns'] = window['onScrollFns'] || [];

0 commit comments

Comments
 (0)