Skip to content

Commit

Permalink
Release v2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tswaters committed May 27, 2021
1 parent 2824d67 commit 6b31900
Show file tree
Hide file tree
Showing 11 changed files with 193 additions and 169 deletions.
4 changes: 4 additions & 0 deletions CHANGES.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.6.1

- Make start idempotent (#16)

## 2.6.0

- Adding cannons option
Expand Down
8 changes: 4 additions & 4 deletions fireworks.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@
};
Fireworks.prototype.start = function () {
var _this = this;
if (this.maxRockets > 0) {
this.interval = window.setInterval(function () { return _this.things.spawnRockets(); }, this.rocketSpawnInterval);
this.rafInterval = window.requestAnimationFrame(function () { return _this.update(); });
}
if (this.interval != null)
return;
this.interval = window.setInterval(function () { return _this.things.spawnRockets(); }, this.rocketSpawnInterval);
this.rafInterval = window.requestAnimationFrame(function () { return _this.update(); });
return function () { return _this.stop(); };
};
Fireworks.prototype.updateDimensions = function () {
Expand Down
2 changes: 1 addition & 1 deletion fireworks.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion fireworks.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fireworks.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions fireworks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ class Fireworks {
window.cancelAnimationFrame(this.rafInterval);
}
start() {
if (this.maxRockets > 0) {
this.interval = window.setInterval(() => this.things.spawnRockets(), this.rocketSpawnInterval);
this.rafInterval = window.requestAnimationFrame(() => this.update());
}
if (this.interval != null)
return;
this.interval = window.setInterval(() => this.things.spawnRockets(), this.rocketSpawnInterval);
this.rafInterval = window.requestAnimationFrame(() => this.update());
return () => this.stop();
}
updateDimensions() {
Expand Down
2 changes: 1 addition & 1 deletion fireworks.mjs.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions fireworks.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ class Fireworks {
window.cancelAnimationFrame(this.rafInterval);
}
start() {
if (this.maxRockets > 0) {
this.interval = window.setInterval(() => this.things.spawnRockets(), this.rocketSpawnInterval);
this.rafInterval = window.requestAnimationFrame(() => this.update());
}
if (this.interval != null)
return;
this.interval = window.setInterval(() => this.things.spawnRockets(), this.rocketSpawnInterval);
this.rafInterval = window.requestAnimationFrame(() => this.update());
return () => this.stop();
}
updateDimensions() {
Expand Down
2 changes: 1 addition & 1 deletion fireworks.node.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 6b31900

Please sign in to comment.