summaryrefslogtreecommitdiffstats
path: root/src/app.ts
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-01-08 13:02:54 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-01-08 13:02:54 +0100
commit8567ed9397b00729c76cc675e9c554133d2612e7 (patch)
tree3ff8a29c115dd4169b3ec2380d6675cf182ab396 /src/app.ts
parent8ee24fdbdfb2f64899e68d44e4c4f236c8c34e86 (diff)
downloadrpgedit-8567ed9397b00729c76cc675e9c554133d2612e7.tar
rpgedit-8567ed9397b00729c76cc675e9c554133d2612e7.zip
util: generalize numberArrayToMap
Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.ts b/src/app.ts
index 37aae93..acd255a 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -29,7 +29,7 @@ window.onload = () => {
xhr.onload = function() {
var mapDef = new MapData(JSON.parse(this.responseText));
- var inputHandler = new InputHandler(util.numberArrayToMap(relevantKeys));
+ var inputHandler = new InputHandler(util.arrayToObject(relevantKeys));
mapContext = new MapContext(mapDef, inputHandler);
}