From eb36bba96c5718d747762addd0075c269a7dc5da Mon Sep 17 00:00:00 2001 From: Alexey Smolianinov Date: Fri, 4 Nov 2011 15:50:28 +0400 Subject: [PATCH] Fixed problem with multipleSeparator == ', ' --- jquery.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.autocomplete.js b/jquery.autocomplete.js index 65c8a1e..d398e9d 100644 --- a/jquery.autocomplete.js +++ b/jquery.autocomplete.js @@ -224,7 +224,7 @@ $.Autocompleter = function(input, options) { previousValue = v; if ( options.multiple ) { - var words = trimWords($input.val()); + var words = $input.val().split(options.multipleSeparator); if ( words.length > 1 ) { var seperator = options.multipleSeparator.length; var cursorAt = $(input).selection().start;