Skip to content

Commit 456faf4

Browse files
committed
Arcade groups collider
1 parent b9e4d15 commit 456faf4

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

src/loader/File.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var File = new Class({
6565
{
6666
this.url = GetFastValue(fileConfig, 'path', '') + this.key + '.' + GetFastValue(fileConfig, 'extension', '');
6767
}
68-
else if (typeof(this.url) !== 'function')
68+
else
6969
{
7070
this.url = GetFastValue(fileConfig, 'path', '').concat(this.url);
7171
}
@@ -118,7 +118,7 @@ var File = new Class({
118118
* @type {integer}
119119
* @since 3.0.0
120120
*/
121-
this.state = typeof(this.url) === "function" ? CONST.FILE_POPULATED : CONST.FILE_PENDING;
121+
this.state = CONST.FILE_PENDING;
122122

123123
/**
124124
* The total size of this file.
@@ -437,4 +437,4 @@ File.revokeObjectURL = function (image)
437437
}
438438
};
439439

440-
module.exports = File;
440+
module.exports = File;

src/loader/filetypes/PluginFile.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ var PluginFile = new Class({
3434

3535
function PluginFile (key, url, path, xhrSettings)
3636
{
37-
// If the url variable refers to a class, add the plugin directly
38-
if (typeof url === 'function')
39-
{
40-
this.key = key;
41-
window[key] = url;
42-
window[key].register(PluginManager);
43-
}
44-
4537
var fileKey = (typeof key === 'string') ? key : GetFastValue(key, 'key', '');
4638

4739
var fileConfig = {
@@ -115,4 +107,4 @@ FileTypesManager.register('plugin', function (key, url, xhrSettings)
115107
return this;
116108
});
117109

118-
module.exports = PluginFile;
110+
module.exports = PluginFile;

0 commit comments

Comments
 (0)