Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scope.$on('$destroy', function()
- {
- cleanPixi();
- });
- function cleanPixi()
- {
- if (typeof(application) !== "undefined" && application !== null)
- {
- if (application.renderer !== null)
- {
- application.stage.destroy(true);
- application.destroy();
- }
- }
- }
- "Cannot read property 'renderer' of null".
- application = new PIXI.Application(
- {
- width: appDisplayDiv.clientWidth,
- height: appDisplayDiv.clientHeight,
- forceCanvas: true,
- backgroundColor: color,
- roundPixels: true,
- view: document.getElementById("appCanvas"),
- sharedTicker: false,
- sharedStage: true
- });
Add Comment
Please, Sign In to add comment