From 6ed351b495db9e9b86066a419df43dd959ae94d3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 5 Jan 2016 18:29:21 +0100 Subject: MapView: remove ready argument --- src/view/MapView.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/view') diff --git a/src/view/MapView.coffee b/src/view/MapView.coffee index 8cb7404..cafc0aa 100644 --- a/src/view/MapView.coffee +++ b/src/view/MapView.coffee @@ -24,7 +24,7 @@ loadTiles = (tileDef) -> class MapView - constructor: (@map, ready) -> + constructor: (@map) -> @redrawPending = false @canvas = document.createElement 'canvas' @@ -36,10 +36,10 @@ class MapView window.addEventListener 'resize', @setSize @setSize() - loadTiles(@map.tiles).then (tiles) => + @ready = loadTiles(@map.tiles).then (tiles) => @tiles = tiles @redraw() - ready() + return drawTile: (x, y, tile) => return unless tile -- cgit v1.2.3