fixed #91 crash after round end

This commit is contained in:
logsol 2014-12-27 22:35:26 +01:00
parent b92cce88f2
commit 4f3a53ca53
6 changed files with 15 additions and 18 deletions

View file

@ -168,11 +168,8 @@ function (Parent, DomController, PIXI, Settings, Nc, Exception, GameStats, Layer
PixiView.prototype.destroy = function() {
this.layerManager.destroy();
this.layerManager.destroy(); // also calls all layers destroy
this.ghostLayer.destroy();
this.swiperLayer.destroy();
for (var i = 0; i < this.stage.children.length; i++) {
this.stage.removeChild(this.stage.children[i]);
}