diff core.js @ 909:68bc26353ada

audioObject returned on node creation for ease of modification by interface.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Thu, 04 Jun 2015 11:21:47 +0100
parents 40f9b1725279
children f938025db0d7
line wrap: on
line diff
--- a/core.js	Thu Jun 04 11:18:21 2015 +0100
+++ b/core.js	Thu Jun 04 11:21:47 2015 +0100
@@ -553,6 +553,7 @@
 
 		// AudioObject will get track itself.
 		this.audioObjects[audioObjectId].constructTrack(url);
+		return this.audioObjects[audioObjectId];
 	};
 	
 	this.newTestPage = function() {