jquery.dgtable 0.6.2 → 0.6.3

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.2
2
+ * jquery.dgtable 0.6.3
3
3
  * git://github.com/danielgindi/jquery.dgtable.git
4
4
  */
5
5
  (function (global, factory) {
@@ -5994,9 +5994,9 @@
5994
5994
  function insertBefore(el, before, parent) {
5995
5995
  if (!before)
5996
5996
  parent.appendChild(el);else
5997
- if (hasInsertAdjacentElement === true)
5998
- before.insertAdjacentElement('beforebegin', el);else
5999
- parent.insertBefore(el, before);
5997
+ if (hasInsertAdjacentElement === false || el instanceof DocumentFragment)
5998
+ parent.insertBefore(el, before);else
5999
+ before.insertAdjacentElement('beforebegin', el);
6000
6000
  }
6001
6001
 
6002
6002
  /**
@@ -6549,7 +6549,7 @@
6549
6549
  }
6550
6550
 
6551
6551
  // Find the element to insert before
6552
- var _before = list.childNodes[0];
6552
+ var _before = itemParent.childNodes[0];
6553
6553
 
6554
6554
  /** @type DocumentFragment|null */
6555
6555
  var _fragment = null;var _loop = function _loop(
@@ -7806,7 +7806,7 @@
7806
7806
  list: p.table,
7807
7807
  itemsParent: p.tbody,
7808
7808
  autoVirtualWrapperWidth: false,
7809
- virtual: true,
7809
+ virtual: o.virtualTable,
7810
7810
  buffer: o.rowsBufferSize,
7811
7811
  estimatedItemHeight: o.estimatedRowHeight ? o.estimatedRowHeight : p.virtualRowHeight || 40,
7812
7812
  itemElementCreatorFn: function itemElementCreatorFn() {