Skip to content

Commit 6868716

Browse files
committed
Fixed JSONFile loader doesn't pass loader to JSONFile
1 parent 37701b0 commit 6868716

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)