Calculating locally if audio is locked instead of getting that data passed as a constructor argument

This commit is contained in:
Pavle Goloskokovic 2018-04-14 18:44:47 +02:00
parent 43e3dc424e
commit 1c294d5921

View file

@ -31,9 +31,9 @@ var HTML5AudioFile = new Class({
initialize:
function HTML5AudioFile (key, url, path, config, locked)
function HTML5AudioFile (key, url, path, config)
{
this.locked = locked;
this.locked = 'ontouchstart' in window;
this.loaded = false;