Skip to content

Commit bdc03dc

Browse files
committed
Rebuild
1 parent b4e229f commit bdc03dc

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

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

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@
395395
* Check for query string
396396
*
397397
* @param param {string} query string parameter to test
398+
*
398399
* @returns {string} query string value
399400
*/
400401
getQueryString: function(param) {
@@ -794,6 +795,7 @@
794795
*
795796
* @param num {number} the full number
796797
* @param dec {number} the number of digits to show after the decimal
798+
*
797799
* @returns {number}
798800
*/
799801
roundNumber: function (num, dec) {
@@ -805,6 +807,7 @@
805807
* Checks to see if the object is empty. Using this instead of $.isEmptyObject for legacy browser support
806808
*
807809
* @param obj {Object} the object to check
810+
*
808811
* @returns {boolean}
809812
*/
810813
isEmptyObject: function (obj) {
@@ -821,6 +824,7 @@
821824
* Checks to see if all the property values in the object are empty
822825
*
823826
* @param obj {Object} the object to check
827+
*
824828
* @returns {boolean}
825829
*/
826830
hasEmptyObjectVals: function (obj) {
@@ -1002,6 +1006,7 @@
10021006
*
10031007
* @param data {array} data array to check for filter values
10041008
* @param filters {Object} taxonomy filters object
1009+
*
10051010
* @returns {boolean}
10061011
*/
10071012
filterData: function (data, filters) {
@@ -1030,6 +1035,7 @@
10301035
*
10311036
* @param currentPage {number}
10321037
* @param totalPages {number}
1038+
*
10331039
* @returns {string}
10341040
*/
10351041
_paginationOutput: function(currentPage, totalPages) {
@@ -1111,6 +1117,7 @@
11111117
* @param markerUrl {string} path to marker image
11121118
* @param markerWidth {number} width of marker
11131119
* @param markerHeight {number} height of marker
1120+
*
11141121
* @returns {Object} Google Maps icon object
11151122
*/
11161123
markerImage: function (markerUrl, markerWidth, markerHeight) {
@@ -1147,6 +1154,7 @@
11471154
* points
11481155
* @param map {Object} the Google Map
11491156
* @param category {string} location category/categories
1157+
*
11501158
* @returns {Object} Google Maps marker
11511159
*/
11521160
createMarker: function (point, name, address, letter, map, category) {
@@ -1227,6 +1235,7 @@
12271235
* @param currentMarker {Object} Google Maps marker
12281236
* @param storeStart {number} optional first location on the current page
12291237
* @param page {number} optional current page
1238+
*
12301239
* @returns {Object} extended location data object
12311240
*/
12321241
_defineLocationData: function (currentMarker, storeStart, page) {
@@ -1529,6 +1538,7 @@
15291538
* Get the address by marker ID
15301539
*
15311540
* @param markerID {number} location ID
1541+
*
15321542
* @returns {string} formatted address
15331543
*/
15341544
getAddressByMarker: function(markerID) {
@@ -2608,24 +2618,24 @@
26082618
return featuredset;
26092619
},
26102620

2611-
/**
2621+
/**
26122622
* Restrict featured locations by distance.
26132623
*
26142624
* @returns {Array}
2615-
*/
2625+
*/
26162626
featuredRestrictions: function(mappingObject) {
2617-
this.writeDebug('featuredRestrictions',arguments);
2627+
this.writeDebug('featuredRestrictions',arguments);
26182628

26192629
if (this.settings.featuredDistance === null) {
26202630
return featuredset;
26212631
}
26222632

26232633
// Featured locations radius restriction.
2624-
if (this.settings.featuredDistance !== null) {
2625-
featuredset = this.featuredDistanceRestriction(mappingObject);
2626-
}
2634+
if (this.settings.featuredDistance !== null) {
2635+
featuredset = this.featuredDistanceRestriction(mappingObject);
2636+
}
26272637

2628-
return featuredset;
2638+
return featuredset;
26292639
},
26302640

26312641
/**
@@ -2818,7 +2828,7 @@
28182828
if (!taxFilters[k]) {
28192829
taxFilters[k] = [];
28202830
}
2821-
taxFilters[k][z] = '(?:^|\\s)' + filters[k][z].replace(/([.*+?^=!:${}()|\[\]\/\\]|&\s+)/g, '');
2831+
taxFilters[k][z] = '(?=.*' + filters[k][z].replace(/([.*+?^=!:${}()|\[\]\/\\]|&\s+)/g, '') + '(?!\\s))';
28222832
}
28232833
}
28242834
}

0 commit comments

Comments
 (0)