mirror of
https://github.com/esiur/esiur-js.git
synced 2026-03-18 07:20:39 +00:00
wh.remove fix
This commit is contained in:
@@ -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,6 +1,6 @@
|
||||
{
|
||||
"name": "esiur",
|
||||
"version": "2.3.6",
|
||||
"version": "2.3.7",
|
||||
"description": "Distributed Object Framework",
|
||||
"main": "esiur.js",
|
||||
"type": "module",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user