Skip to content

Commit

Permalink
A bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Jul 4, 2023
1 parent 753cbc0 commit 85c55fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions javascript/JZZ.gui.Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@
Player.prototype.onLoop = nop;
Player.prototype.loop = function(n) {
if (this._player) {
var self = this;
if (typeof n == 'undefined') n = !this._loop;
if (n == parseInt(n) && n > 0) this._loop = n;
else this._loop = n ? -1 : 0;
Expand Down

0 comments on commit 85c55fc

Please sign in to comment.