Skip to content

Commit

Permalink
Add writedebug to new functions, update version number
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn2404 committed Aug 22, 2022
1 parent c8535d5 commit 7cbe646
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-storelocator-plugin",
"version": "3.1.7",
"version": "3.1.8",
"description": "This jQuery plugin takes advantage of Google Maps API version 3 to create an easy to implement store locator. No back-end programming is required, you just need to feed it KML, XML, or JSON data with all the location information.",
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion dist/assets/js/plugins/storeLocator/jquery.storelocator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jQuery Google Maps Store Locator - v3.1.7 - 2022-08-20
/*! jQuery Google Maps Store Locator - v3.1.8 - 2022-08-21
* http://www.bjornblog.com/web/jquery-store-locator-plugin
* Copyright (c) 2022 Bjorn Holine; Licensed MIT */

Expand Down Expand Up @@ -401,6 +401,7 @@
* @returns {boolean}
*/
inRange(min, num, max){
this.writeDebug('inRange',arguments);
num = Math.abs(num);
return isFinite(num) && (num >= min) && (num <= max);
},
Expand All @@ -414,6 +415,7 @@
* @returns {boolean}
*/
coordinatesInRange: function (lat, lng) {
this.writeDebug('coordinatesInRange',arguments);
return this.inRange(-90, lat, 90) && this.inRange(-180, lng, 180);
},

Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-storelocator-plugin",
"version": "3.1.7",
"version": "3.1.8",
"description": "This jQuery plugin takes advantage of Google Maps API version 3 to create an easy to implement store locator. No back-end programming is required, you just need to feed it KML, XML, or JSON data with all the location information.",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions src/js/jquery.storelocator.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@
* @returns {boolean}
*/
inRange(min, num, max){
this.writeDebug('inRange',arguments);
num = Math.abs(num);
return isFinite(num) && (num >= min) && (num <= max);
},
Expand All @@ -410,6 +411,7 @@
* @returns {boolean}
*/
coordinatesInRange: function (lat, lng) {
this.writeDebug('coordinatesInRange',arguments);
return this.inRange(-90, lat, 90) && this.inRange(-180, lng, 180);
},

Expand Down
4 changes: 2 additions & 2 deletions storelocator.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"title": "jQuery Google Maps Store Locator",
"description": "This jQuery plugin takes advantage of Google Maps API version 3 to create an easy to implement store locator. No back-end programming is required, you just need to feed it KML, XML, or JSON data with all the location information.",
"keywords": ["jquery","locator","store","dealer","location", "locations", "maps", "map", "stores", "find"],
"version": "3.1.7",
"version": "3.1.8",
"author": {
"name": "Bjorn Holine",
"url": "http://www.bjornblog.com/"
"url": "https://www.bjornblog.com/"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 7cbe646

Please sign in to comment.