Skip to content

Commit 767f979

Browse files
rename event payload parameter version to apiVersion because version already exists
1 parent 3dc0744 commit 767f979

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/events.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ MapboxEventManager.prototype = {
180180
worldview: geocoder.options.worldview,
181181
mapZoom: zoom,
182182
keyboardLocale: this.locale,
183-
version: geocoder.options.version
183+
apiVersion: geocoder.options.version
184184
}
185185

186186
// get the text in the search bar
@@ -191,6 +191,7 @@ MapboxEventManager.prototype = {
191191
}else{
192192
payload.queryString = geocoder.inputString;
193193
}
194+
console.log('LOG EVENT', event, payload);
194195
return payload;
195196
},
196197

0 commit comments

Comments
 (0)