mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
The Spine Plugin was not clearing down the resize event listener in WebGL, causing it to still fire even if the Scene was closed. Fix #4808
This commit is contained in:
parent
30a895d054
commit
44f93cde30
1 changed files with 5 additions and 0 deletions
|
@ -1013,6 +1013,11 @@ var SpinePlugin = new Class({
|
|||
var eventEmitter = this.systems.events;
|
||||
|
||||
eventEmitter.off('shutdown', this.shutdown, this);
|
||||
|
||||
if (this.isWebGL)
|
||||
{
|
||||
this.game.scale.off(ResizeEvent, this.onResize, this);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue