native-document 1.0.220 → 1.0.221

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-document",
3
- "version": "1.0.220",
3
+ "version": "1.0.221",
4
4
  "description": "A reactive JavaScript framework that preserves native DOM simplicity without sacrificing modern features",
5
5
  "author": "AfroCodeur <https://github.com/afrocodeur>",
6
6
  "license": "MIT",
@@ -1,4 +1,5 @@
1
- import type { ObservableItem } from '../../../types/observable';
1
+ import {ObservableItem} from "../../../../types/observable";
2
+
2
3
 
3
4
  export interface HasItems {
4
5
  dynamic(observableArray?: ObservableItem<unknown[]> | null): this;
@@ -472,7 +472,13 @@ export const StoreFactory = function() {
472
472
  };
473
473
  }
474
474
  if (target.has(prop)) {
475
- return target.follow(prop);
475
+ if ($followersCache.has(prop)) {
476
+ return $followersCache.get(prop);
477
+ }
478
+ const follower = target.follow(prop);
479
+ $followersCache.set(prop, follower);
480
+
481
+ return follower;
476
482
  }
477
483
  return target[prop];
478
484
  },
@@ -52,7 +52,10 @@ export default function ModalRender($desc, instance) {
52
52
  }
53
53
  if (!value && isNativeOpen) {
54
54
  dialog.close();
55
+ return;
55
56
  }
57
+
58
+ dialog.close();
56
59
  });
57
60
 
58
61
  setupBehaviours(dialog, $desc, instance);