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
  'use strict';
@@ -3857,8 +3857,6 @@ DGTable.prototype.close = DGTable.prototype.remove = DGTable.prototype.destroy =
3857
3857
 
3858
3858
  this._destroyHeaderCells();
3859
3859
 
3860
- p.virtualListHelper.destroy();
3861
-
3862
3860
  if (p.$table) {
3863
3861
  p.$table.empty();
3864
3862
  }
@@ -5504,9 +5502,10 @@ DGTable.prototype.removeRow = function (physicalRowIndex, render) {
5504
5502
  * @public
5505
5503
  * @expose
5506
5504
  * @param {number} physicalRowIndex index
5505
+ * @param {boolean} render should render the changes immediately?
5507
5506
  * @returns {DGTable} self
5508
5507
  */
5509
- DGTable.prototype.refreshRow = function (physicalRowIndex) {
5508
+ DGTable.prototype.refreshRow = function (physicalRowIndex, render = true) {
5510
5509
  let that = this,
5511
5510
  p = that.p;
5512
5511
 
@@ -5522,6 +5521,9 @@ DGTable.prototype.refreshRow = function (physicalRowIndex) {
5522
5521
 
5523
5522
  p.virtualListHelper.refreshItemAt(rowIndex);
5524
5523
 
5524
+ if (render)
5525
+ p.virtualListHelper.render();
5526
+
5525
5527
  return this;
5526
5528
  };
5527
5529