From 3915b7b0bc48962efca3d91a9e960eacb7946699 Mon Sep 17 00:00:00 2001 From: Bryan Larsen Date: Sun, 21 Feb 2010 11:25:42 -0500 Subject: [PATCH] support minChars=0 for Autocompleter --- src/controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls.js b/src/controls.js index b09c93b..89f1bed 100644 --- a/src/controls.js +++ b/src/controls.js @@ -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') {