Skip to content

Commit

Permalink
feat(autocomplete): enableDebugMode method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerska committed Sep 30, 2016
1 parent deba6e1 commit e7944cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/AlgoliasearchZendeskHC.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ class AlgoliasearchZendeskHC {
this.search.render(options);
});
}

enableDebugMode() {
if (!this.search.enableDebugMode) return;
this.search.enableDebugMode();
}
}

AlgoliasearchZendeskHC.instances = [];
Expand Down
6 changes: 6 additions & 0 deletions app/src/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ class Autocomplete {
this._temporaryHidingCancel();
}

enableDebugMode() {
this.autocompletes.forEach(function (aa) {
aa.autocomplete.typeahead.debug = true;
});
}

// Protected

_sizeModifier(inputWidth) {
Expand Down

0 comments on commit e7944cd

Please sign in to comment.