kittykatattack / sound.js

A micro-library to load, play and generate sound effects and music for games and interactive applications
300 stars 44 forks source link

Sound.js Console Errors on Load #10

Open Eagleheart opened 7 years ago

Eagleheart commented 7 years ago

sound.js:269 Uncaught TypeError: self.whenLoaded is not a function loadHandler @ sound.js:269 (anonymous function) @ sound.js:630

I'm getting this error when sounds.js loads sounds in any browser without a sounds.whenLoaded function being specified. Assuming I don't want a specific function to run when the sounds are loaded, this error shouldn't print to the console.

kittykatattack commented 7 years ago

Thanks for reporting this!

Is this happening when you test the index.html file in this repository? Could you please post an example of the code you're using that generates this error?