Mercurial > hg > webaudioevaluationtool
diff core.js @ 852:36a0054a0ee0
Ape for Firefox fixed
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Mon, 14 Sep 2015 09:23:49 +0100 |
parents | 1eacf6c1056a |
children | be9e15805532 |
line wrap: on
line diff
--- a/core.js Thu Sep 10 15:22:58 2015 +0100 +++ b/core.js Mon Sep 14 09:23:49 2015 +0100 @@ -918,9 +918,9 @@ this.bufferNode.connect(this.outputGain); this.bufferNode.buffer = this.buffer; this.bufferNode.loop = audioEngineContext.loopPlayback; - this.bufferNode.onended = function() { + this.bufferNode.onended = function(event) { // Safari does not like using 'this' to reference the calling object! - event.srcElement.owner.metric.stopListening(audioEngineContext.timer.getTestTime(),event.srcElement.owner.getCurrentPosition()); + event.currentTarget.owner.metric.stopListening(audioEngineContext.timer.getTestTime(),event.currentTarget.owner.getCurrentPosition()); }; if (this.bufferNode.loop == false) { this.metric.startListening(audioEngineContext.timer.getTestTime());