multiplegeorges Posted January 23, 2015 Share Posted January 23, 2015 Hey all, I'm making a single page app that uses a Pixi CanvasRenderer on one of the screens. When I clean up my views in JS, I am getting zombie objects because there's no way to unbind the events on the Pixi renderer/stage. Take a look at this heap snapshot... How can I free up these objects for collection? Thanks a lot! Quote Link to comment Share on other sites More sharing options...
multiplegeorges Posted January 23, 2015 Author Share Posted January 23, 2015 Argh, Pixi's woefully out of date online API docs strike again. InteractionManager has a removeEvents method. When cleaning up your objects, use it like this:this.stage.interactionManager.removeEvents();Pretty straightforward, but you gotta read the source to find it. Oh well. thearchitect 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.