Added reference to Oversimplified.Tune.element and Sound so Play() works.

This commit is contained in:
Robbie Antenesse 2016-04-16 13:10:55 -06:00
parent 4388514610
commit 9acc3130e4
1 changed files with 2 additions and 0 deletions

View File

@ -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";