comparison core.js @ 2002:5627dbe56043

Fixed Bug 1204: Multiple clicks creates multiple instances.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 01 May 2015 16:07:15 +0100
parents 300d44e02afc
children ffeef0ac7a5f
comparison
equal deleted inserted replaced
2001:a467fc1f048f 2002:5627dbe56043
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;