Skip to content

Commit

Permalink
Fix broken JSONP.
Browse files Browse the repository at this point in the history
  • Loading branch information
svbatalov committed Mar 30, 2023
1 parent 754f40e commit ab1d49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leaflet-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@
this._retrieveData = this.options.jsonpParam ? this._recordsFromJsonp : this._recordsFromAjax
}

this._curReq = this._retrieveData(this, inputText, function (data) {
this._curReq = this._retrieveData.call(this, inputText, function (data) {
self._recordsCache = self._formatData(self, data)

// TODO refact!
Expand Down

0 comments on commit ab1d49b

Please sign in to comment.