Browse files

Don't sort the input because of a prefix.

Fixes #397.
  • Loading branch information...
1 parent e1ba7c1 commit f4dfba4504ab145664d92bcf344ec6d5bb08c42d @davidfowl davidfowl committed May 13, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −4 JabbR/Scripts/jquery.autotabcomplete.js
View
4 JabbR/Scripts/jquery.autotabcomplete.js
@@ -57,10 +57,6 @@
_index = getNextIndex(_index, offset, values.length);
var initialLen = _initial.length;
- // sort values if there's a prefix
- if (initialLen > 0) {
- values = values.sort(sortInsensitive);
- }
// loop through values (ring buffer) for match
var i = _index;

0 comments on commit f4dfba4

Please sign in to comment.