Skip to content

Commit 913c93e

Browse files
Using EventEmitter emit method to dispatch mute update event
1 parent 1912dd9 commit 913c93e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ Object.defineProperty(HTML5AudioSound.prototype, 'mute', {
254254
set: function (value) {
255255
this.currentConfig.mute = value;
256256
this.setMute();
257-
this.events.dispatch(new SoundValueEvent(this, 'SOUND_MUTE', value));
257+
this.emit('mute', this, value);
258258
}
259259
});
260260
/**

0 commit comments

Comments
 (0)