ssb-chess-mithril 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -65,7 +65,7 @@ module.exports = (attachToElement, dataAccess, opts = {}) => {
|
|
|
65
65
|
// Hack: keep observables loaded with the latest value.
|
|
66
66
|
const watches = [
|
|
67
67
|
gamesInProgressObs(e => e),
|
|
68
|
-
gamesMyMoveObs(),
|
|
68
|
+
gamesMyMoveObs(e => e),
|
|
69
69
|
observableGamesObs(e => e),
|
|
70
70
|
userRecentActivity(e => e)
|
|
71
71
|
];
|
|
@@ -151,7 +151,7 @@ module.exports = (attachToElement, dataAccess, opts = {}) => {
|
|
|
151
151
|
},
|
|
152
152
|
destroy: () => {
|
|
153
153
|
// unmount the app
|
|
154
|
-
m.
|
|
154
|
+
m.mount(attachToElement, null);
|
|
155
155
|
globalWatches.then((watches) => watches.forEach(w => w()))
|
|
156
156
|
}
|
|
157
157
|
};
|