Skip to content

Commit ff01fa7

Browse files
Renamed variable from $this to $placemark
1 parent da30fad commit ff01fa7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/jquery.storelocator.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,12 @@ $.fn.storeLocator = function(options) {
416416
else if(settings.dataType === 'kml'){
417417
//Process KML
418418
$(data).find('Placemark').each(function(){
419-
var $this = $(this), locationData = {
420-
'name': $this.find('name').text(),
421-
'lat': $this.find('coordinates').text().split(",")[1],
422-
'lng': $this.find('coordinates').text().split(",")[0],
419+
var $placemark = $(this), locationData = {
420+
'name': $placemark.find('name').text(),
421+
'lat' : $placemark.find('coordinates').text().split(",")[1],
422+
'lng' : $placemark.find('coordinates').text().split(",")[0],
423423
// Promote setting a locdescription key for a singular description to use in templates instead, as some KML generators (like Google Maps Engine) populates the generic description including all key: values set.
424-
'description': $this.find('description').text()
424+
'description': $placemark.find('description').text()
425425
};
426426

427427
$this.find('displayName').each(function(){

0 commit comments

Comments
 (0)