mirror of
https://github.com/photonstorm/phaser
synced 2025-03-01 05:47:28 +00:00
Fixed key issue
This commit is contained in:
parent
5461471bf3
commit
3bb6099c6d
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
var GetFastValue = require('../utils/object/GetFastValue');
|
||||
var UppercaseFirst = require('../utils/string/UppercaseFirst');
|
||||
|
||||
var GetPhysicsPlugins = function (sys)
|
||||
{
|
||||
|
@ -16,14 +17,14 @@ var GetPhysicsPlugins = function (sys)
|
|||
|
||||
if (defaultSystem)
|
||||
{
|
||||
output.push(defaultSystem + 'Physics');
|
||||
output.push(UppercaseFirst(defaultSystem + 'Physics'));
|
||||
}
|
||||
|
||||
if (sceneSystems)
|
||||
{
|
||||
for (var key in sceneSystems)
|
||||
{
|
||||
key = key.concat('Physics');
|
||||
key = UppercaseFirst(key.concat('Physics'));
|
||||
|
||||
if (output.indexOf(key) === -1)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue