Skip to content

Commit a7e4c10

Browse files
committed
fix(index-selector): Update usage and error
1 parent a55c0ae commit a7e4c10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

widgets/index-selector/index-selector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function indexSelector({
2727
}) {
2828
var containerNode = utils.getContainerNode(container);
2929

30-
var usage = 'Usage: indexSelector({container, indices[, cssClasses.{select,option}, hideContainerWhenNoResults]})';
30+
var usage = 'Usage: indexSelector({container, indices[, cssClasses.{root,item}, hideContainerWhenNoResults]})';
3131
if (!container || !indices) {
3232
throw new Error(usage);
3333
}
@@ -37,7 +37,7 @@ function indexSelector({
3737
var currentIndex = helper.getIndex();
3838
var isIndexInList = findIndex(indices, {name: currentIndex}) !== -1;
3939
if (!isIndexInList) {
40-
throw new Error('[stats]: Index ' + currentIndex + ' not present in `indices`');
40+
throw new Error('[indexSelector]: Index ' + currentIndex + ' not present in `indices`');
4141
}
4242
},
4343

0 commit comments

Comments
 (0)