Commit b1d492d4ce5e4a3cf220de4e978b82450fc9a3df
'use strict' everywhere
Dominic Tarr committed on 6/5/2017, 9:47:16 AMParent: 44b78ddb99bccc18d9093d7fa39c0ed0a10ea535
Files changed
index.js | changed |
progress.js | changed |
simulate.js | changed |
util.js | changed |
index.js | |||
---|---|---|---|
@@ -1,4 +1,5 @@ | |||
1 … | +'use strict' | ||
1 | 2 … | var S = require('./state') | |
2 | 3 … | var u = require('./util') | |
3 | 4 … | var isNote = u.isNote | |
4 | 5 … | var isMessage = u.isMessage | |
@@ -51,9 +52,9 @@ | |||
51 | 52 … | if('function' === typeof opts) | |
52 | 53 … | callback = opts, opts = {} | |
53 | 54 … | ||
54 | 55 … | var readyMsg = [], readyNote = {} | |
55 | - onChange = opts.onChange || require('./bounce')(function () { | ||
56 … | + var onChange = opts.onChange || require('./bounce')(function () { | ||
56 | 57 … | console.log(progress(states)) | |
57 | 58 … | }, 1000) | |
58 | 59 … | ||
59 | 60 … | //called if this feed is has not been requested | |
@@ -220,4 +221,5 @@ | |||
220 | 221 … | ||
221 | 222 … | } | |
222 | 223 … | } | |
223 | 224 … | ||
225 … | + | ||
progress.js | ||
---|---|---|
@@ -1,4 +1,5 @@ | ||
1 … | +'use strict' | |
1 | 2 … | //Question: can I use req to reliably track how many |
2 | 3 … | //messages we are expecting to receive? |
3 | 4 … | |
4 | 5 … | //Math.max(null, null) is zero, but we want null |
Built with git-ssb-web