Skip to content

Commit 1912dd9

Browse files
Using EventEmitter emit method to dispatch loop event
1 parent 8ba0c3d commit 1912dd9

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
@@ -212,7 +212,7 @@ var HTML5AudioSound = new Class({
212212
currentTime = this.audio.currentTime;
213213
}
214214
if (currentTime < this.previousTime) {
215-
this.events.dispatch(new SoundEvent(this, 'SOUND_LOOP'));
215+
this.emit('loop', this);
216216
}
217217
this.previousTime = currentTime;
218218
}

0 commit comments

Comments
 (0)