diff --git a/lib/components/c_facets/List.js b/lib/components/c_facets/List.js index 869849e..65c439a 100644 --- a/lib/components/c_facets/List.js +++ b/lib/components/c_facets/List.js @@ -40,6 +40,7 @@ _.extendProto(List, { replaceItem: List$replaceItem, moveItem: List$moveItem, removeItem: List$removeItem, + removeItems: List$removeItems, extractItem: List$extractItem, each: List$each, map: List$map, @@ -375,6 +376,15 @@ function List$removeItem(index) { return this.owner.data.splice(index, 1); } +/** + * List facet instance method + * @param {Integer} index The starting index of the items are to be removed + * @param {Integer} numberToRemove The number of the items to be removed + * @return {Array[Object]} The spliced data + */ +function List$removeItems(index, numberToRemove) { + return this.owner.data.splice(index, numberToRemove); +} /** * List facet instance method