2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-05-03 01:08:43 +00:00

wh.remove fix

This commit is contained in:
2026-02-18 22:32:25 +03:00
parent dd88085cc2
commit b3080f5b96
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -12592,7 +12592,8 @@ var WH = exports.WH = /*#__PURE__*/function (_IEventHandler) {
// remove all objects associated with the store
var toBeRemoved = null;
for (var i = 0; i < this.resources.length; i++) {
var o = this.resources.at(i);
var o = this.resources.at(i).deref();
if (o == null) continue;
if (o.instance.store == resource) {
if (toBeRemoved == null) toBeRemoved = [];
toBeRemoved.push(o);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "esiur",
"version": "2.3.6",
"version": "2.3.7",
"description": "Distributed Object Framework",
"main": "esiur.js",
"type": "module",
+4 -1
View File
@@ -187,7 +187,10 @@ export class WH extends IEventHandler
for (var i = 0; i < this.resources.length; i++)
{
var o = this.resources.at(i);
var o = this.resources.at(i).deref();
if (o == null)
continue;
if (o.instance.store == resource)
{
if (toBeRemoved == null)