Opened 5 years ago

Closed 5 years ago

#10203 closed bug (worksforme)

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.

Change History (1)

comment:1 Changed 5 years ago by Scott González

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.

Note: See TracTickets for help on using tickets.