From c30fe02850c2533cfb6153d36e68f583ffe057f4 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 25 May 2012 09:46:29 +0200 Subject: [PATCH] use new Ox.find --- source/Ox.UI/js/Form/Ox.Input.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Form/Ox.Input.js b/source/Ox.UI/js/Form/Ox.Input.js index ae6f7849..49bf297d 100644 --- a/source/Ox.UI/js/Form/Ox.Input.js +++ b/source/Ox.UI/js/Form/Ox.Input.js @@ -326,9 +326,11 @@ Ox.Input = function(options, self) { } function autocompleteFunction() { - var values = Ox.find(self.options.autocomplete, self.options.value); - return self.options.autocompleteReplace - ? values[0] : values[0].concat(values[1]); + return Ox.find( + self.options.autocomplete, + self.options.value, + self.options.autocompleteReplace + ); } function autocompleteCallback(values) {