mirror of
https://github.com/photonstorm/phaser
synced 2025-03-01 05:47:28 +00:00
Renamed touchLocked to locked
This commit is contained in:
parent
b61a4dec66
commit
345f112ff8
1 changed files with 5 additions and 5 deletions
|
@ -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 ()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue