Skip to content

Commit

Permalink
support minChars=0 for Autocompleter
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Feb 21, 2010
1 parent 299f8b9 commit 3915b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls.js
Expand Up @@ -58,7 +58,7 @@ Autocompleter.Base = Class.create({
this.options.paramName = this.options.paramName || this.element.name;
this.options.tokens = this.options.tokens || [];
this.options.frequency = this.options.frequency || 0.4;
this.options.minChars = this.options.minChars || 1;
if(this.options.minChars==null) {this.options.minChars = 1;};
this.options.onShow = this.options.onShow ||
function(element, update){
if(!update.style.position || update.style.position=='absolute') {
Expand Down

0 comments on commit 3915b7b

Please sign in to comment.