mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Added pause method implementation that calls super method and dispatches pause event
This commit is contained in:
parent
d3c034e5cc
commit
5e8d0dcaee
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue