summaryrefslogtreecommitdiffstats
path: root/src/view
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-01-05 18:29:21 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-01-05 18:29:21 +0100
commit6ed351b495db9e9b86066a419df43dd959ae94d3 (patch)
tree5c08600e2cc2e907594f5c74a4a23151e8ef113c /src/view
parent72258029665409148dab429e5c5f7fabaf157036 (diff)
downloadrpgedit-6ed351b495db9e9b86066a419df43dd959ae94d3.tar
rpgedit-6ed351b495db9e9b86066a419df43dd959ae94d3.zip
MapView: remove ready argument
Diffstat (limited to 'src/view')
-rw-r--r--src/view/MapView.coffee6
1 files changed, 3 insertions, 3 deletions
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