From b06268b3ab9da5140bb87fdc1ef7cde27e5ffd47 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 16 Jul 2020 18:21:53 -0400
Subject: removed main.on(open) log and fixed breaking scope bug
---
examples/nword.js | 4 ++--
1 file 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]);
--
cgit