Skip to content

Commit 0384916

Browse files
committed
ensure that phaser never overrides an existing pixi class
1 parent 63ca126 commit 0384916

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/Phaser.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ var Phaser = Phaser || {
7575

7676
};
7777

78-
PIXI.InteractionManager = function () {
79-
// We don't need this in Pixi, so we've removed it to save space
80-
// however the Stage object expects a reference to it, so here is a dummy entry.
81-
};
78+
// We don't need this in Pixi, so we've removed it to save space
79+
// however the Stage object expects a reference to it, so here is a dummy entry.
80+
// Ensure that an existing PIXI.InteractionManager is not overriden- in case you're using your own PIXI library.
81+
82+
PIXI.InteractionManager = PIXI.InteractionManager || {}

0 commit comments

Comments
 (0)