johnnypacia / sound_shaper_app

Sound Shaper
0 stars 0 forks source link

Event Listener Question #5

Closed johnnypacia closed 8 years ago

johnnypacia commented 8 years ago

I'm trying to add a second event listener on my buttons so I can have say, mute/unmute functionality, with one button. This is week 2 stuff I know. But you wouldn't believe how much time I've wasted today looking through my classwork/homwork/instructor folders as well as all kinds of googling trying to figure out how to make my buttons have 2 functions attached to them (like mute/unmute). I'm currently using vanilla js but I will set up jquery and rewrite my code if that's the only way to do it. Any advise on this would be greatly appreciated.

johnnypacia commented 8 years ago

I got it working using callbacks! At long last lol.