comparison core.js @ 996:902f22e182f6

Fixed Bug 1204: Multiple clicks creates multiple instances.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 01 May 2015 16:07:15 +0100
parents f378fb8286ae
children ffeef0ac7a5f
comparison
equal deleted inserted replaced
995:3444a772d19e 996:902f22e182f6
168 this.bufferNode.loop = audioEngineContext.loopPlayback; 168 this.bufferNode.loop = audioEngineContext.loopPlayback;
169 this.bufferNode.start(startTime); 169 this.bufferNode.start(startTime);
170 }; 170 };
171 171
172 this.stop = function() { 172 this.stop = function() {
173 this.bufferNode.stop(0); 173 if (this.bufferNode != undefined)
174 this.bufferNode = undefined; 174 {
175 this.bufferNode.stop(0);
176 this.bufferNode = undefined;
177 }
175 }; 178 };
176 179
177 this.constructTrack = function(url) { 180 this.constructTrack = function(url) {
178 var request = new XMLHttpRequest(); 181 var request = new XMLHttpRequest();
179 this.url = url; 182 this.url = url;