Skip to content

Commit cbb055f

Browse files
Using EventEmitter emit method to dispatch volume update event
1 parent 209b0ca commit cbb055f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Object.defineProperty(HTML5AudioSoundManager.prototype, 'volume', {
124124
this.forEachActiveSound(function (sound) {
125125
sound.setVolume();
126126
});
127-
this.events.dispatch(new SoundValueEvent(this, 'SOUND_VOLUME', value));
127+
this.emit('volume', this, value);
128128
}
129129
});
130130
module.exports = HTML5AudioSoundManager;

0 commit comments

Comments
 (0)