aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-07-16 18:21:53 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-07-16 18:21:53 -0400
commitb06268b3ab9da5140bb87fdc1ef7cde27e5ffd47 (patch)
tree640a4f083169aabf4c6d61a896f416149b8aeff3 /examples
parent327ed17b1d66f89a2165d626775698edbc2c0e9d (diff)
removed main.on(open) log and fixed breaking scope bug
Diffstat (limited to 'examples')
-rw-r--r--examples/nword.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nword.js b/examples/nword.js
index fe09a0b..5926e42 100644
--- a/examples/nword.js
+++ b/examples/nword.js
@@ -21,12 +21,12 @@ var wq = new Queue(1000, 200, (w,max) =>{
}
});
-main.on('open',()=>{wq.enable(); console.log('here');});
+main.on('open',()=>wq.enable());
var expire = {};
main.on('tileUpdate', (send, source, tiles)=>{
let tiledata = maketiles(tiles);
- for (loc of tiledata.locs) {
+ for (let loc of tiledata.locs) {
let spc = tiledata.tilespaces[loc];
if (search.has(loc)){
clearTimeout(expire[loc]);