Skip to content

Commit b8553d1

Browse files
committed
Added check for Google Maps API
1 parent 2eeae1f commit b8553d1

File tree

7 files changed

+14
-10
lines changed

7 files changed

+14
-10
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-storelocator-plugin",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"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.",
55
"repository": {
66
"type": "git",

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery Google Maps Store Locator - v2.1.0 - 2015-09-20
1+
/*! jQuery Google Maps Store Locator - v2.1.0 - 2015-10-23
22
* http://www.bjornblog.com/web/jquery-store-locator-plugin
33
* Copyright (c) 2015 Bjorn Holine; Licensed MIT */
44

@@ -7,8 +7,8 @@
77

88
var pluginName = 'storeLocator';
99

10-
// Only allow for one instantiation of this script
11-
if (typeof $.fn[pluginName] !== 'undefined') {
10+
// Only allow for one instantiation of this script and make sure Google Maps API is included
11+
if (typeof $.fn[pluginName] !== 'undefined' || typeof google === 'undefined') {
1212
return;
1313
}
1414

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

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-storelocator-plugin",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"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.",
55
"repository": {
66
"type": "git",

readme.md

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ for even faster loading.
2727

2828
## Changelog
2929

30+
### Version 2.1.1
31+
32+
* Added check for Google Maps API
33+
3034
### Version 2.1.0
3135

3236
Includes contributions from from [Giancarlo Gomez](https://github.com/GiancarloGomez).

src/js/jquery.storelocator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
var pluginName = 'storeLocator';
66

7-
// Only allow for one instantiation of this script
8-
if (typeof $.fn[pluginName] !== 'undefined') {
7+
// Only allow for one instantiation of this script and make sure Google Maps API is included
8+
if (typeof $.fn[pluginName] !== 'undefined' || typeof google === 'undefined') {
99
return;
1010
}
1111

storelocator.jquery.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "jQuery Google Maps Store Locator",
44
"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.",
55
"keywords": ["jquery","locator","store", "location", "locations", "maps", "map", "stores", "find"],
6-
"version": "2.1.0",
6+
"version": "2.1.1",
77
"author": {
88
"name": "Bjorn Holine",
99
"url": "http://www.bjornblog.com/"

0 commit comments

Comments
 (0)