File tree Expand file tree Collapse file tree 4 files changed +8
-13
lines changed
dist/assets/js/plugins/storeLocator Expand file tree Collapse file tree 4 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 1
- /*! jQuery Google Maps Store Locator - v2.0.6 - 2015-03-24
1
+ /*! jQuery Google Maps Store Locator - v2.0.6 - 2015-03-25
2
2
* http://www.bjornblog.com/web/jquery-store-locator-plugin
3
3
* Copyright (c) 2015 Bjorn Holine; Licensed MIT */
4
4
1177
1177
} ,
1178
1178
1179
1179
/**
1180
- * Checks distance of each location and setups up the locationset array
1180
+ * Checks distance of each location and sets up the locationset array
1181
1181
*
1182
1182
* @param data {Object} location data object
1183
1183
* @param lat {number} origin latitude
1194
1194
}
1195
1195
1196
1196
// Create the array
1197
- if ( this . settings . maxDistance === true && firstRun !== true && maxDistance !== null ) {
1197
+ if ( this . settings . maxDistance === true && firstRun !== true && typeof maxDistance !== 'undefined' && maxDistance !== null ) {
1198
1198
if ( data . distance < maxDistance ) {
1199
1199
locationset . push ( data ) ;
1200
1200
}
1442
1442
maxDistance = mappingObject . distance ;
1443
1443
page = mappingObject . page ;
1444
1444
}
1445
-
1446
- // Enable the visual refresh https://developers.google.com/maps/documentation/javascript/basics#VisualRefresh
1447
- google . maps . visualRefresh = true ;
1448
1445
1449
1446
// Set the initial page to zero if not set
1450
1447
if ( typeof page === 'undefined' ) {
You can’t perform that action at this time.
0 commit comments