mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
lint fixes
This commit is contained in:
parent
3043fd52e6
commit
6d1166a9c2
3 changed files with 8 additions and 8 deletions
|
@ -17,7 +17,6 @@ var Device = require('../device');
|
||||||
var DOMContentLoaded = require('../dom/DOMContentLoaded');
|
var DOMContentLoaded = require('../dom/DOMContentLoaded');
|
||||||
var EventEmitter = require('eventemitter3');
|
var EventEmitter = require('eventemitter3');
|
||||||
var InputManager = require('../input/InputManager');
|
var InputManager = require('../input/InputManager');
|
||||||
var PluginCache = require('../plugins/PluginCache');
|
|
||||||
var PluginManager = require('../plugins/PluginManager');
|
var PluginManager = require('../plugins/PluginManager');
|
||||||
var SceneManager = require('../scene/SceneManager');
|
var SceneManager = require('../scene/SceneManager');
|
||||||
var SoundManagerCreator = require('../sound/SoundManagerCreator');
|
var SoundManagerCreator = require('../sound/SoundManagerCreator');
|
||||||
|
|
|
@ -80,7 +80,7 @@ PluginCache.registerCustom = function (key, plugin, mapping)
|
||||||
PluginCache.hasCore = function (key)
|
PluginCache.hasCore = function (key)
|
||||||
{
|
{
|
||||||
return corePlugins.hasOwnProperty(key);
|
return corePlugins.hasOwnProperty(key);
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the given key is already being used in the custom plugin cache.
|
* Checks if the given key is already being used in the custom plugin cache.
|
||||||
|
@ -95,7 +95,7 @@ PluginCache.hasCore = function (key)
|
||||||
PluginCache.hasCustom = function (key)
|
PluginCache.hasCustom = function (key)
|
||||||
{
|
{
|
||||||
return customPlugins.hasOwnProperty(key);
|
return customPlugins.hasOwnProperty(key);
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the core plugin object from the cache based on the given key.
|
* Returns the core plugin object from the cache based on the given key.
|
||||||
|
@ -110,7 +110,7 @@ PluginCache.hasCustom = function (key)
|
||||||
PluginCache.getCore = function (key)
|
PluginCache.getCore = function (key)
|
||||||
{
|
{
|
||||||
return corePlugins[key];
|
return corePlugins[key];
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the custom plugin object from the cache based on the given key.
|
* Returns the custom plugin object from the cache based on the given key.
|
||||||
|
@ -125,7 +125,7 @@ PluginCache.getCore = function (key)
|
||||||
PluginCache.getCustom = function (key)
|
PluginCache.getCustom = function (key)
|
||||||
{
|
{
|
||||||
return customPlugins[key];
|
return customPlugins[key];
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an object from the custom cache based on the given key that can be instantiated.
|
* Returns an object from the custom cache based on the given key that can be instantiated.
|
||||||
|
@ -140,7 +140,7 @@ PluginCache.getCustom = function (key)
|
||||||
PluginCache.getCustomClass = function (key)
|
PluginCache.getCustomClass = function (key)
|
||||||
{
|
{
|
||||||
return (customPlugins.hasOwnProperty(key)) ? customPlugins[key].plugin : null;
|
return (customPlugins.hasOwnProperty(key)) ? customPlugins[key].plugin : null;
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a core plugin based on the given key.
|
* Removes a core plugin based on the given key.
|
||||||
|
@ -156,7 +156,7 @@ PluginCache.remove = function (key)
|
||||||
{
|
{
|
||||||
delete corePlugins[key];
|
delete corePlugins[key];
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a custom plugin based on the given key.
|
* Removes a custom plugin based on the given key.
|
||||||
|
@ -172,6 +172,6 @@ PluginCache.removeCustom = function (key)
|
||||||
{
|
{
|
||||||
delete customPlugins[key];
|
delete customPlugins[key];
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
module.exports = PluginCache;
|
module.exports = PluginCache;
|
||||||
|
|
|
@ -403,6 +403,7 @@ var PluginManager = new Class({
|
||||||
{
|
{
|
||||||
// Add it to the plugin store
|
// Add it to the plugin store
|
||||||
PluginCache.registerCustom(key, plugin);
|
PluginCache.registerCustom(key, plugin);
|
||||||
|
|
||||||
// gamePlugins[key] = plugin;
|
// gamePlugins[key] = plugin;
|
||||||
|
|
||||||
if (start)
|
if (start)
|
||||||
|
|
Loading…
Reference in a new issue