Commit 3eb9a1271a24866c0fdbf02fa318537a1d3adb16
map: fix rebind/unlisten for invalidators
Matt McKegg committed on 9/27/2016, 8:21:13 PMParent: 47e9da79b4756a70bb65f6ba7223c366dced141a
Files changed
map.js | changed |
map.js | ||
---|---|---|
@@ -49,9 +49,9 @@ | ||
49 | 49 | releases.push(obs(binder.onUpdate)) |
50 | 50 | } |
51 | 51 | rebindAll() |
52 | 52 | |
53 | - Array.from(itemInvalidators.values).forEach(function (invalidators) { | |
53 | + Array.from(itemInvalidators.values()).forEach(function (invalidators) { | |
54 | 54 | invalidators.forEach(function (invalidator) { |
55 | 55 | invalidator.release = invalidator.observable(invalidate.bind(null, invalidator)) |
56 | 56 | }) |
57 | 57 | }) |
@@ -69,9 +69,9 @@ | ||
69 | 69 | releases.pop()() |
70 | 70 | } |
71 | 71 | rebindAll() |
72 | 72 | |
73 | - Array.from(itemInvalidators.values).forEach(function (invalidators) { | |
73 | + Array.from(itemInvalidators.values()).forEach(function (invalidators) { | |
74 | 74 | invalidators.forEach(invokeRelease) |
75 | 75 | }) |
76 | 76 | |
77 | 77 | if (opts && opts.onUnlisten) { |
Built with git-ssb-web