not removing canvas from DOM anymore, fixes #63

This commit is contained in:
Jeena 2014-06-07 12:07:54 +02:00
parent 9f0d173a82
commit 9ec3324c29
4 changed files with 9 additions and 14 deletions

View file

@ -40,10 +40,10 @@ function (DomController, Settings, Exception, Nc) {
}
}
AbstractView.prototype.setCanvas = function (canvas) {
AbstractView.prototype.initCanvas = function (canvas) {
this.canvas = canvas;
DomController.setCanvas(canvas);
DomController.initCanvas(canvas);
}
AbstractView.prototype.loadPlayerMesh = function(player) {

View file

@ -48,7 +48,7 @@ function (Parent, DomController, PIXI, Settings, Nc) {
this.initInfo();
this.initLoader();
this.setCanvas(this.renderer.view);
this.initCanvas(this.renderer.view);
}
PixiView.prototype.render = function () {