Skip to content

Commit 5b2ec33

Browse files
committed
Fixed broken dragSearch that was introduced after map scope pull request was merged
1 parent f5dc3a5 commit 5b2ec33

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

dist/assets/js/plugins/storeLocator/jquery.storelocator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2588,7 +2588,7 @@
25882588
// Add map drag listener if setting is enabled and re-search on drag end
25892589
if (_this.settings.dragSearch === true ) {
25902590
_this.map.addListener('dragend', function() {
2591-
_this.dragSearch(map);
2591+
_this.dragSearch(_this.map);
25922592
});
25932593
}
25942594

dist/assets/js/plugins/storeLocator/jquery.storelocator.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ filtering.
4141
* Added autoCompleteDisableListener setting to disable the listener that immediately triggers a search when an auto complete location option is selected.
4242
* Added functionality to select/check filters on load from query string parameter values.
4343
* Added location details object to callbackListClick and callbackMarkerClick objects.
44+
* Fixed broken dragSearch functionality that was introduced after map scope pull request was merged.
4445
* Fixed Handlebars targeting issue triggered by placing an unordered list within the location list template.
4546
* Updated callbackListClick documentation to include second market object parameter.
4647

src/js/jquery.storelocator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2585,7 +2585,7 @@
25852585
// Add map drag listener if setting is enabled and re-search on drag end
25862586
if (_this.settings.dragSearch === true ) {
25872587
_this.map.addListener('dragend', function() {
2588-
_this.dragSearch(map);
2588+
_this.dragSearch(_this.map);
25892589
});
25902590
}
25912591

0 commit comments

Comments
 (0)