native-document 1.0.252 → 1.0.254

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.252",
3
+ "version": "1.0.254",
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",
@@ -525,7 +525,7 @@ ObservableArray.prototype.isNotEmpty = function () {
525
525
  };
526
526
 
527
527
  ObservableArray.prototype.fnPush = function (item) {
528
- return this.push(item);
528
+ return () => this.push(item);
529
529
  };
530
530
 
531
531
  ObservableArray.prototype.fnRemove = function (item) {
@@ -271,7 +271,8 @@ export const StoreFactory = function() {
271
271
  */
272
272
  follow(name) {
273
273
  const { observer: originalObserver, subscribers } = $getStoreOrThrow('follow', name);
274
- const observerFollower = $createObservable(originalObserver.val());
274
+ const value = originalObserver.val();
275
+ const observerFollower = $createObservable(Array.isArray(value) ? [...value] : value);
275
276
 
276
277
  const onStoreChange = $synchroProtectedFollower(originalObserver, observerFollower, name,'follow');
277
278