Renamed touchLocked to locked

This commit is contained in:
Pavle Goloskokovic 2018-01-18 14:05:20 +01:00
parent b61a4dec66
commit 345f112ff8

View file

@ -11,9 +11,9 @@ var HTML5AudioFile = new Class({
initialize:
function HTML5AudioFile (key, url, path, config, touchLocked)
function HTML5AudioFile (key, url, path, config, locked)
{
this.touchLocked = touchLocked;
this.locked = locked;
var fileConfig = {
type: 'audio',
@ -77,7 +77,7 @@ var HTML5AudioFile = new Class({
audio.dataset.name = this.key + ('0' + i).slice(-2); // Useful for debugging
audio.dataset.used = 'false';
if (!this.touchLocked)
if (!this.locked)
{
audio.preload = 'auto';
audio.oncanplaythrough = this.onProgress.bind(this);
@ -92,13 +92,13 @@ var HTML5AudioFile = new Class({
audio = this.data[i];
audio.src = GetURL(this, baseURL || '');
if (!this.touchLocked)
if (!this.locked)
{
audio.load();
}
}
if (this.touchLocked)
if (this.locked)
{
setTimeout(function ()
{