Implemented stopAll method

This commit is contained in:
Pavle Goloskokovic 2018-01-04 15:59:44 +01:00
parent 56dab0e0eb
commit 70b31c7273

View file

@ -119,7 +119,11 @@ var BaseSoundManager = new Class({
removeByKey: NOOP,
pauseAll: NOOP,
resumeAll: NOOP,
stopAll: NOOP,
stopAll: function () {
this.sounds.forEach(function (sound) {
sound.stop();
});
},
/**
* @private
*/