mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Bugfixing - unsubscribing game related topics, to prevent double calls and leaking references, added offAll method to nc. fixes no rendering bug
This commit is contained in:
parent
40e396fc23
commit
39f684315b
8 changed files with 57 additions and 19 deletions
|
|
@ -42,7 +42,7 @@ function (Parent, DomController, PIXI, Settings, Nc) {
|
|||
console.log('CanvasRenderer - not using WebGL!')
|
||||
}
|
||||
|
||||
this.stage = new PIXI.Stage(/*0x333333*/);
|
||||
this.stage = new PIXI.Stage(0x333333);
|
||||
|
||||
this.initCamera();
|
||||
this.initInfo();
|
||||
|
|
@ -305,8 +305,15 @@ function (Parent, DomController, PIXI, Settings, Nc) {
|
|||
this.loader.visible = progress < 100;
|
||||
};
|
||||
|
||||
PixiView.prototype.test = function() {
|
||||
console.log(this.stage.children)
|
||||
PixiView.prototype.destroy = function() {
|
||||
|
||||
for (var i = 0; i < this.stage.children.length; i++) {
|
||||
this.stage.removeChild(this.stage.children[i]);
|
||||
}
|
||||
|
||||
this.renderer.render(this.stage);
|
||||
|
||||
Parent.prototype.destroy.call(this);
|
||||
};
|
||||
|
||||
return PixiView;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue