mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Fixed JSONFile loader doesn't pass loader to JSONFile
This commit is contained in:
parent
37701b0d6f
commit
68687162b5
1 changed files with 2 additions and 2 deletions
|
@ -96,12 +96,12 @@ FileTypesManager.register('json', function (key, url, xhrSettings)
|
|||
for (var i = 0; i < key.length; i++)
|
||||
{
|
||||
// If it's an array it has to be an array of Objects, so we get everything out of the 'key' object
|
||||
this.addFile(new JSONFile(key[i], url, this.path, xhrSettings));
|
||||
this.addFile(new JSONFile(this, key[i], url, xhrSettings));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.addFile(new JSONFile(key, url, this.path, xhrSettings));
|
||||
this.addFile(new JSONFile(this, key, url, xhrSettings));
|
||||
}
|
||||
|
||||
// For method chaining
|
||||
|
|
Loading…
Reference in a new issue