use new Ox.find

This commit is contained in:
rolux 2012-05-25 09:46:29 +02:00
parent 565dc6ad35
commit c30fe02850

View file

@ -326,9 +326,11 @@ Ox.Input = function(options, self) {
} }
function autocompleteFunction() { function autocompleteFunction() {
var values = Ox.find(self.options.autocomplete, self.options.value); return Ox.find(
return self.options.autocompleteReplace self.options.autocomplete,
? values[0] : values[0].concat(values[1]); self.options.value,
self.options.autocompleteReplace
);
} }
function autocompleteCallback(values) { function autocompleteCallback(values) {