Skip to content

Commit

Permalink
fix(index-selector): Update usage and error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerska committed Oct 26, 2015
1 parent a55c0ae commit a7e4c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions widgets/index-selector/index-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function indexSelector({
}) {
var containerNode = utils.getContainerNode(container);

var usage = 'Usage: indexSelector({container, indices[, cssClasses.{select,option}, hideContainerWhenNoResults]})';
var usage = 'Usage: indexSelector({container, indices[, cssClasses.{root,item}, hideContainerWhenNoResults]})';
if (!container || !indices) {
throw new Error(usage);
}
Expand All @@ -37,7 +37,7 @@ function indexSelector({
var currentIndex = helper.getIndex();
var isIndexInList = findIndex(indices, {name: currentIndex}) !== -1;
if (!isIndexInList) {
throw new Error('[stats]: Index ' + currentIndex + ' not present in `indices`');
throw new Error('[indexSelector]: Index ' + currentIndex + ' not present in `indices`');
}
},

Expand Down

0 comments on commit a7e4c10

Please sign in to comment.