diff --git a/bi/case.js b/bi/case.js index a6378aabe6..3c9e1d261d 100644 --- a/bi/case.js +++ b/bi/case.js @@ -7181,9 +7181,10 @@ BI.ListPane = BI.inherit(BI.Pane, { this.check(); }, - removeItems: function (items) { - BI.remove(this.options.items, items); - this.button_group.removeItems.apply(this.button_group, arguments); + removeItemAt: function (indexes) { + indexes = indexes || []; + BI.removeAt(this.options.items, indexes); + this.button_group.removeItemAt.apply(this.button_group, arguments); this.check(); }, diff --git a/docs/case.js b/docs/case.js index a6378aabe6..3c9e1d261d 100644 --- a/docs/case.js +++ b/docs/case.js @@ -7181,9 +7181,10 @@ BI.ListPane = BI.inherit(BI.Pane, { this.check(); }, - removeItems: function (items) { - BI.remove(this.options.items, items); - this.button_group.removeItems.apply(this.button_group, arguments); + removeItemAt: function (indexes) { + indexes = indexes || []; + BI.removeAt(this.options.items, indexes); + this.button_group.removeItemAt.apply(this.button_group, arguments); this.check(); }, diff --git a/src/case/layer/pane.list.js b/src/case/layer/pane.list.js index d225bd87e2..fcedfc8b36 100644 --- a/src/case/layer/pane.list.js +++ b/src/case/layer/pane.list.js @@ -101,9 +101,10 @@ BI.ListPane = BI.inherit(BI.Pane, { this.check(); }, - removeItems: function (items) { - BI.remove(this.options.items, items); - this.button_group.removeItems.apply(this.button_group, arguments); + removeItemAt: function (indexes) { + indexes = indexes || []; + BI.removeAt(this.options.items, indexes); + this.button_group.removeItemAt.apply(this.button_group, arguments); this.check(); },