guy 8 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); 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 () { restore: function () {
this.renderedIndex = -1; this.renderedIndex = -1;
this._clearChildren();
this.cache = {}; this.cache = {};
}, },

9
docs/base.js

@ -15616,8 +15616,17 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.element.scrollTop(o.scrollTop); 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 () { restore: function () {
this.renderedIndex = -1; this.renderedIndex = -1;
this._clearChildren();
this.cache = {}; this.cache = {};
}, },

9
src/base/list/virtuallist.js

@ -159,8 +159,17 @@ BI.VirtualList = BI.inherit(BI.Widget, {
this.element.scrollTop(o.scrollTop); 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 () { restore: function () {
this.renderedIndex = -1; this.renderedIndex = -1;
this._clearChildren();
this.cache = {}; this.cache = {};
}, },

Loading…
Cancel
Save