Remove endpoint from map when destroyed

This commit is contained in:
Tony Garnock-Jones 2018-11-11 13:58:16 +00:00
parent 76678f7b27
commit 46535e5ab8
1 changed files with 1 additions and 0 deletions

View File

@ -632,6 +632,7 @@ Endpoint.prototype.destroy = function (ds, ac, facet, emitPatches) {
// ^ TODO: this won't work because of object identity problems! Why
// does the Racket implementation do this, when the old JS
// implementation doesn't?
facet.endpoints = facet.endpoints.remove(this.id);
this._uninstall(ds, ac, emitPatches);
};