Added pause method implementation that calls super method and dispatches pause event

This commit is contained in:
Pavle Goloskokovic 2018-01-11 17:42:18 +01:00
parent d3c034e5cc
commit 5e8d0dcaee

View file

@ -36,6 +36,14 @@ var HTML5AudioSound = new Class({
// TODO implement play method
this.events.dispatch(new SoundEvent(this, 'SOUND_PLAY'));
return true;
},
pause: function () {
if (!BaseSound.prototype.pause.call(this)) {
return false;
}
// TODO implement pause method
this.events.dispatch(new SoundEvent(this, 'SOUND_PAUSE'));
return true;
}
});
module.exports = HTML5AudioSound;