Skip to content

Commit

Permalink
change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Algorush committed May 17, 2024
1 parent 6fa70db commit f54207c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/street-geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ AFRAME.registerComponent('street-geo', {

for (const mapType of this.mapTypes) {
// create map function with name: <mapType>Create
const createElementFunction = this[mapType + 'Create'].bind(this);
const createMapFunction = this[mapType + 'Create'].bind(this);
if (data.maps.includes(mapType) && !this[mapType]) {
// create Map element and save a link to it in this[mapType]
this[mapType] = createElementFunction();
this[mapType] = createMapFunction();
} else if (data.maps.includes(mapType) && (updatedData.longitude || updatedData.latitude || updatedData.elevation)) {
// call update map function with name: <mapType>Update
this[mapType + 'Update'].bind(this)();
Expand Down

0 comments on commit f54207c

Please sign in to comment.