diff options
Diffstat (limited to 'src/app.coffee')
-rw-r--r-- | src/app.coffee | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/app.coffee b/src/app.coffee index 6c64c5a..ca3ddf8 100644 --- a/src/app.coffee +++ b/src/app.coffee @@ -2,19 +2,20 @@ require './style.css' +window._ = require 'lodash' -Map = require './model/Map' -MapView = require './view/MapView' +MapData = require './model/MapData' +MapContext = require './control/MapContext' -mapView = null +mapContext = null window.onload = -> xhr = new XMLHttpRequest() xhr.onload = -> - mapDef = new Map(JSON.parse this.responseText) - mapView = new MapView mapDef + mapDef = new MapData(JSON.parse this.responseText) + mapContext = new MapContext mapDef xhr.open 'GET', 'resources/map/test.json', true xhr.send() |