Skip to content

Commit 7bf1722

Browse files
Update status parameters
Fixes result count in ARIA status message
1 parent 7897104 commit 7bf1722

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

dist/bloodhound.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typeahead.bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,7 @@
20142014
}, this));
20152015
}
20162016
_.mixin(Status.prototype, {
2017-
update: function update(event, name, suggestions) {
2017+
update: function update(event, suggestions) {
20182018
var length = suggestions.length;
20192019
var words;
20202020
if (length === 1) {

dist/typeahead.bundle.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typeahead.jquery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@
10671067
}, this));
10681068
}
10691069
_.mixin(Status.prototype, {
1070-
update: function update(event, name, suggestions) {
1070+
update: function update(event, suggestions) {
10711071
var length = suggestions.length;
10721072
var words;
10731073
if (length === 1) {

dist/typeahead.jquery.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/typeahead/status.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var Status = (function () {
1313
}, this));
1414
}
1515
_.mixin(Status.prototype, {
16-
update: function update(event, name, suggestions) {
16+
update: function update(event, suggestions) {
1717
var length = suggestions.length;
1818
var words;
1919
if (length === 1) {

test/typeahead/status_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ describe('Status', function() {
3434
it('should update the status text based on number of suggestion', function() {
3535
expect(status.$el.text()).toEqual('');
3636

37-
menu.datasets[0].trigger('rendered', 'my-dataset', [1, 2, 3]);
37+
menu.datasets[0].trigger('rendered', [1, 2, 3]);
3838

3939
expect(status.$el.text()).toEqual('3 results are available, use up and down arrow keys to navigate.');
4040
});
4141

4242
it('should use singular conjugations if only one suggestion', function() {
4343
expect(status.$el.text()).toEqual('');
4444

45-
menu.datasets[0].trigger('rendered', 'my-dataset', [1]);
45+
menu.datasets[0].trigger('rendered', [1]);
4646

4747
expect(status.$el.text()).toEqual('1 result is available, use up and down arrow keys to navigate.');
4848
});

0 commit comments

Comments
 (0)