Skip to content

Commit 5e8d0dc

Browse files
Added pause method implementation that calls super method and dispatches pause event
1 parent d3c034e commit 5e8d0dc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ var HTML5AudioSound = new Class({
3636
// TODO implement play method
3737
this.events.dispatch(new SoundEvent(this, 'SOUND_PLAY'));
3838
return true;
39+
},
40+
pause: function () {
41+
if (!BaseSound.prototype.pause.call(this)) {
42+
return false;
43+
}
44+
// TODO implement pause method
45+
this.events.dispatch(new SoundEvent(this, 'SOUND_PAUSE'));
46+
return true;
3947
}
4048
});
4149
module.exports = HTML5AudioSound;

0 commit comments

Comments
 (0)