Skip to content

Commit f289be6

Browse files
authored
Merge pull request phaserjs#3625 from iamchristopher/fix-json-loader
Fixed loader isn't passed to JSONFile
2 parents 2037cf4 + 6868716 commit f289be6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/loader/filetypes/JSONFile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ FileTypesManager.register('json', function (key, url, xhrSettings)
9696
for (var i = 0; i < key.length; i++)
9797
{
9898
// If it's an array it has to be an array of Objects, so we get everything out of the 'key' object
99-
this.addFile(new JSONFile(key[i], url, this.path, xhrSettings));
99+
this.addFile(new JSONFile(this, key[i], url, xhrSettings));
100100
}
101101
}
102102
else
103103
{
104-
this.addFile(new JSONFile(key, url, this.path, xhrSettings));
104+
this.addFile(new JSONFile(this, key, url, xhrSettings));
105105
}
106106

107107
// For method chaining

0 commit comments

Comments
 (0)