Skip to main content

Search and Top Navigation

#10203 closed bug (worksforme)

Opened July 15, 2014 08:08AM UTC

Closed July 15, 2014 12:45PM UTC

Callback-Function "response" broken since 1.10.4

Reported by: gerritvanaaken Owned by:
Priority: minor Milestone: none
Component: ui.autocomplete Version: 1.11.0
Keywords: Cc:
Blocked by: Blocking:
Description

I’m using jQ-UI-Autocomplete in combination with the the Googlemaps-Geocoder-API for postal addresses. My code is here:

$(".geobyaddress").autocomplete({
		source: function(request, response) {
			geocoder.geocode( {''address': request.term}, function(results) {
				response (results);
			});

		});

Everything is working fine. After updating to 1.10.4 or 1.11.0 (doesn’t matter), however, theres the javascript error "Uncaught TypeError: undefined is not a function". It’s related to my call of the response() function. It is not defined within the "source" function.

In 1.10.3 it worked perfectly.

Attachments (0)
Change History (1)

Changed July 15, 2014 12:45PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

http://jqueryui.com/autocomplete/#remote-with-cache shows that it's working just fine. If you continue to have problems, we'll need a reduced test case showing the error and then we can re-open this. But we have unit tests that prove this has been working the whole time.