Skip to content

Commit f586cd4

Browse files
committed
global.Phaser = Phaser has been removed, as it's no longer required by the UMD loader, which should make importing in Angular 10 easier. Fix phaserjs#5212
1 parent 5ab9e2e commit f586cd4

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/phaser-arcade-physics.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var Extend = require('./utils/object/Extend');
1515

1616
/**
1717
* The root types namespace.
18-
*
18+
*
1919
* @namespace Phaser.Types
2020
* @since 3.17.0
2121
*/
@@ -69,8 +69,6 @@ if (typeof FEATURE_SOUND)
6969

7070
module.exports = Phaser;
7171

72-
global.Phaser = Phaser;
73-
7472
/*
7573
* "Documentation is like pizza: when it is good, it is very, very good;
7674
* and when it is bad, it is better than nothing."

src/phaser-core.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var Extend = require('./utils/object/Extend');
1515

1616
/**
1717
* The root types namespace.
18-
*
18+
*
1919
* @namespace Phaser.Types
2020
* @since 3.17.0
2121
*/
@@ -114,8 +114,6 @@ if (typeof FEATURE_SOUND)
114114

115115
module.exports = Phaser;
116116

117-
global.Phaser = Phaser;
118-
119117
/*
120118
* "Documentation is like pizza: when it is good, it is very, very good;
121119
* and when it is bad, it is better than nothing."

src/phaser.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Phaser = Extend(false, Phaser, CONST);
7676

7777
/**
7878
* The root types namespace.
79-
*
79+
*
8080
* @namespace Phaser.Types
8181
* @since 3.17.0
8282
*/
@@ -85,8 +85,6 @@ Phaser = Extend(false, Phaser, CONST);
8585

8686
module.exports = Phaser;
8787

88-
global.Phaser = Phaser;
89-
9088
/*
9189
* "Documentation is like pizza: when it is good, it is very, very good;
9290
* and when it is bad, it is better than nothing."

0 commit comments

Comments
 (0)