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:
Richard Davey 2019-10-17 13:24:54 +01:00
parent 30a895d054
commit 44f93cde30

View file

@ -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);
}
},
/**