guy 7 years ago
parent
commit
61129291f2
  1. 9
      bi/base.js
  2. 9
      docs/base.js
  3. 9
      src/base/list/virtuallist.js

9
bi/base.js

@ -15616,8 +15616,17 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.element.scrollTop(o.scrollTop);
},
_clearChildren: function () {
BI.each(this.container._children, function (i, cell) {
cell && cell.el._destroy();
});
this.container._children = {};
this.container.attr("items", []);
},
restore: function () {
this.renderedIndex = -1;
this._clearChildren();
this.cache = {};
},

9
docs/base.js

@ -15616,8 +15616,17 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.element.scrollTop(o.scrollTop);
},
_clearChildren: function () {
BI.each(this.container._children, function (i, cell) {
cell && cell.el._destroy();
});
this.container._children = {};
this.container.attr("items", []);
},
restore: function () {
this.renderedIndex = -1;
this._clearChildren();
this.cache = {};
},

9
src/base/list/virtuallist.js

@ -159,8 +159,17 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.element.scrollTop(o.scrollTop);
},
_clearChildren: function () {
BI.each(this.container._children, function (i, cell) {
cell && cell.el._destroy();
});
this.container._children = {};
this.container.attr("items", []);
},
restore: function () {
this.renderedIndex = -1;
this._clearChildren();
this.cache = {};
},

Loading…
Cancel
Save