Commit 1f69a7c23c4c4afd58c3c6cd989bba0a1d391283
remove some sneaky es6 that made it in
Matt McKegg committed on 11/20/2016, 2:54:02 AMParent: 9a45ee19f015307308d964ffa52965fe95ed8ad0
Files changed
idle-proxy.js | changed |
map.js | changed |
idle-proxy.js | ||
---|---|---|
@@ -2,7 +2,9 @@ | ||
2 | 2 … | var onceIdle = require('./once-idle') |
3 | 3 … | |
4 | 4 … | module.exports = function IdleProxy (fn) { |
5 | 5 … | var obs = Proxy() |
6 | - onceIdle(() => obs.set(fn())) | |
6 … | + onceIdle(function () { | |
7 … | + obs.set(fn()) | |
8 … | + }) | |
7 | 9 … | return obs |
8 | 10 … | } |
map.js | |||
---|---|---|---|
@@ -202,9 +202,11 @@ | |||
202 | 202 … | } | |
203 | 203 … | } | |
204 | 204 … | if (changed.length) { | |
205 | 205 … | var rawValue = raw[changed[0]] | |
206 | - changed.forEach((index) => { raw[index] = null }) | ||
206 … | + changed.forEach(function (index) { | ||
207 … | + raw[index] = null | ||
208 … | + }) | ||
207 | 209 … | if (!raw.includes(rawValue)) { | |
208 | 210 … | removeMapped(rawValue) | |
209 | 211 … | } | |
210 | 212 … | changed.forEach(updateItem) |
Built with git-ssb-web