diff --git a/src/drawer.js b/src/drawer.js index 9e8ca131..52b975c9 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -50,18 +50,16 @@ $.Drawer = function(source, viewport, elmt) { this.elmt = this._container; - this._init(); + + this._canvas.style.width = "100%"; + this._canvas.style.height = "100%"; + this._canvas.style.position = "absolute"; + this._container.style.textAlign = "left"; // explicit left-align + this._container.appendChild(this._canvas); }; $.Drawer.prototype = { - _init: function() { - this._canvas.style.width = "100%"; - this._canvas.style.height = "100%"; - this._canvas.style.position = "absolute"; - this._container.style.textAlign = "left"; // explicit left-align - this._container.appendChild(this._canvas); - }, _compareTiles: function(prevBest, tile) { if (!prevBest) { return tile;