@esfaenza/es-table 11.2.67 → 11.2.68

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.
@@ -484,20 +484,21 @@
484
484
  this.firstsearch = true;
485
485
  }
486
486
  /**
487
- * Permette di resettare questo oggetto ai valori di default
487
+ * Permette di resettare un AppSearch ai valori di default.
488
+ * Reso statico perché fra una deserializzazione e l'altra si potrebbe perdere il prototype del costruttore
488
489
  */
489
- AppSearch.prototype.reset = function () {
490
- this.pages = 1;
491
- this.objectcount = 0;
492
- this.searchinprogress = false;
493
- this.firstsearch = false;
494
- this.page = 1;
495
- this.itemsperpageoverride = 15;
496
- this.items = [];
497
- this.orders = [];
498
- this.columns = [];
499
- this.column_ordering = [];
500
- this.savedstate = false;
490
+ AppSearch.reset = function (aps) {
491
+ aps.pages = 1;
492
+ aps.objectcount = 0;
493
+ aps.searchinprogress = false;
494
+ aps.firstsearch = false;
495
+ aps.page = 1;
496
+ aps.itemsperpageoverride = 15;
497
+ aps.items = [];
498
+ aps.orders = [];
499
+ aps.columns = [];
500
+ aps.column_ordering = [];
501
+ aps.savedstate = false;
501
502
  };
502
503
  return AppSearch;
503
504
  }());