Skip to content

Commit

Permalink
fix: widgets.searchbox => widgets.searchBox
Browse files Browse the repository at this point in the history
Widgets names should be camel case to avoid future issues like
widgets.wowwidget
  • Loading branch information
vvo committed Aug 3, 2015
1 parent 9309a4c commit 6c49e18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var instant = new instantsearch.InstantSearch(
);

instant.addWidget(
instantsearch.widgets.searchbox({
instantsearch.widgets.searchBox({
container: '#search-box',
placeholder: 'Search for products',
addClass: 'form-control'
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
module.exports = {
InstantSearch: require('./lib/InstantSearch'),
widgets: {
searchbox: require('./widgets/searchbox'),
results: require('./widgets/hits')
searchBox: require('./widgets/search-box/'),
}
};
2 changes: 1 addition & 1 deletion widgets/searchbox/index.js → widgets/search-box/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function searchbox(params) {
setQuery={bind(helper.setQuery, helper)}
search={bind(helper.search, helper)}
placeholder={params.placeholder}
inputClass={params.addClass} />, container
inputClass={params.cssClass} />, container
);
}
};
Expand Down

0 comments on commit 6c49e18

Please sign in to comment.