Skip to content

Commit

Permalink
Bump version to 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrl committed May 21, 2018
1 parent 54ba98c commit aecdc41
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion soundbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ class SoundBox {
};
}

SoundBox.version = "0.3";
SoundBox.version = "0.3.1";
2 changes: 1 addition & 1 deletion soundbox.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ class SoundBox {
};
}

SoundBox.version = "0.3";
SoundBox.version = "0.3.1";
export default SoundBox;
2 changes: 1 addition & 1 deletion soundbox.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* A super simple JS library for playing sound effects and other audio.
*/
'use strict';class SoundBox{constructor(){this.sounds={}}load(a,b,d){this.sounds[a]=new Audio(b);if("function"==typeof d)this.sounds[a].addEventListener("canplaythrough",d);else return new Promise((c,b)=>{this.sounds[a].addEventListener("canplaythrough",c);this.sounds[a].addEventListener("error",b)})}remove(a){"undefined"!=typeof this.sounds&&delete this.sounds[a];"function"==typeof this.sound_callbacks&&delete this.sound_callbacks[a]}play(a,b,d=1){if("undefined"==typeof this.sounds[a])return console.error("Can't find sound called '"+
a+"'."),!1;var c=this.sounds[a].cloneNode(!0);c.volume=d;c.play();return"function"==typeof b?(c.addEventListener("ended",b),!0):new Promise((a,b)=>c.addEventListener("ended",a))}}SoundBox.version="0.3";
a+"'."),!1;var c=this.sounds[a].cloneNode(!0);c.volume=d;c.play();return"function"==typeof b?(c.addEventListener("ended",b),!0):new Promise((a,b)=>c.addEventListener("ended",a))}}SoundBox.version="0.3.1";
2 changes: 1 addition & 1 deletion soundbox.min.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
* A super simple JS library for playing sound effects and other audio.
*/
'use strict';class SoundBox{constructor(){this.sounds={}}load(a,b,d){this.sounds[a]=new Audio(b);if("function"==typeof d)this.sounds[a].addEventListener("canplaythrough",d);else return new Promise((c,b)=>{this.sounds[a].addEventListener("canplaythrough",c);this.sounds[a].addEventListener("error",b)})}remove(a){"undefined"!=typeof this.sounds&&delete this.sounds[a];"function"==typeof this.sound_callbacks&&delete this.sound_callbacks[a]}play(a,b,d=1){if("undefined"==typeof this.sounds[a])return console.error("Can't find sound called '"+
a+"'."),!1;var c=this.sounds[a].cloneNode(!0);c.volume=d;c.play();return"function"==typeof b?(c.addEventListener("ended",b),!0):new Promise((a,b)=>c.addEventListener("ended",a))}}SoundBox.version="0.3";
a+"'."),!1;var c=this.sounds[a].cloneNode(!0);c.volume=d;c.play();return"function"==typeof b?(c.addEventListener("ended",b),!0):new Promise((a,b)=>c.addEventListener("ended",a))}}SoundBox.version="0.3.1";
export default SoundBox;

0 comments on commit aecdc41

Please sign in to comment.