diff --git a/src/case/layer/pane.list.js b/src/case/layer/pane.list.js index 28d618285..1b6530355 100644 --- a/src/case/layer/pane.list.js +++ b/src/case/layer/pane.list.js @@ -104,7 +104,7 @@ BI.ListPane = BI.inherit(BI.Pane, { }, removeItemAt: function (indexes) { - indexes = indexes || []; + indexes = BI.isNull(indexes) ? [] : indexes; BI.removeAt(this.options.items, indexes); this.button_group.removeItemAt.apply(this.button_group, arguments); this.check(); diff --git a/typescript/case/layer/pane.list.ts b/typescript/case/layer/pane.list.ts index 46c3f6bfe..bf800cf15 100644 --- a/typescript/case/layer/pane.list.ts +++ b/typescript/case/layer/pane.list.ts @@ -13,7 +13,7 @@ export declare class ListPane extends Pane { addItems(items: T[]): void; - removeItemAt(indexes: number): void; + removeItemAt(indexes?: number | number[]): void; populate(items?: T[]): void;