jquery.dgtable 0.6.5 → 0.6.7

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jquery.dgtable 0.6.5
2
+ * jquery.dgtable 0.6.7
3
3
  * git://github.com/danielgindi/jquery.dgtable.git
4
4
  */
5
5
  import jQuery from 'jquery';
@@ -3855,8 +3855,6 @@ DGTable.prototype.close = DGTable.prototype.remove = DGTable.prototype.destroy =
3855
3855
 
3856
3856
  this._destroyHeaderCells();
3857
3857
 
3858
- p.virtualListHelper.destroy();
3859
-
3860
3858
  if (p.$table) {
3861
3859
  p.$table.empty();
3862
3860
  }
@@ -5502,9 +5500,10 @@ DGTable.prototype.removeRow = function (physicalRowIndex, render) {
5502
5500
  * @public
5503
5501
  * @expose
5504
5502
  * @param {number} physicalRowIndex index
5503
+ * @param {boolean} render should render the changes immediately?
5505
5504
  * @returns {DGTable} self
5506
5505
  */
5507
- DGTable.prototype.refreshRow = function (physicalRowIndex) {
5506
+ DGTable.prototype.refreshRow = function (physicalRowIndex, render = true) {
5508
5507
  let that = this,
5509
5508
  p = that.p;
5510
5509
 
@@ -5520,6 +5519,9 @@ DGTable.prototype.refreshRow = function (physicalRowIndex) {
5520
5519
 
5521
5520
  p.virtualListHelper.refreshItemAt(rowIndex);
5522
5521
 
5522
+ if (render)
5523
+ p.virtualListHelper.render();
5524
+
5523
5525
  return this;
5524
5526
  };
5525
5527