Browse Source

无jira任务:调整下add items的顺序

es6
Kira 5 years ago
parent
commit
f271d21982
  1. 2
      src/case/loader/loader.list.js

2
src/case/loader/loader.list.js

@ -100,8 +100,8 @@ BI.ListLoader = BI.inherit(BI.Widget, {
addItems: function (items) { addItems: function (items) {
this.count += items.length; this.count += items.length;
if (BI.isObject(this.next)) { if (BI.isObject(this.next)) {
if (this.hasNext()) {
this.options.items = this.options.items.concat(items); this.options.items = this.options.items.concat(items);
if (this.hasNext()) {
this.next.setLoaded(); this.next.setLoaded();
} else { } else {
this.next.setEnd(); this.next.setEnd();

Loading…
Cancel
Save