From 9acc3130e45be6d55274c0825a13bba12b096b23 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Sat, 16 Apr 2016 13:10:55 -0600 Subject: [PATCH] Added reference to Oversimplified.Tune.element and Sound so Play() works. --- Oversimplified.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Oversimplified.js b/Oversimplified.js index a1165ae..7ffca35 100644 --- a/Oversimplified.js +++ b/Oversimplified.js @@ -1150,6 +1150,7 @@ Oversimplified.Sound = function (name, source, secondarySource) { document.getElementById("audio").appendChild(this.audioElement); this.audioElement.load(); + this.element = this.audioElement; } Oversimplified.Sound.prototype.type = "Sound"; @@ -1192,6 +1193,7 @@ Oversimplified.Tune = function (name, source, secondarySource, duration) { document.getElementById("audio").appendChild(this.audioElement); this.audioElement.load(); + this.element = this.audioElement; } Oversimplified.Tune.prototype.type = "Tune";