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
22* http://www.bjornblog.com/web/jquery-store-locator-plugin
33* Copyright (c) 2015 Bjorn Holine; Licensed MIT */
44
11771177 } ,
11781178
11791179 /**
1180- * Checks distance of each location and setups up the locationset array
1180+ * Checks distance of each location and sets up the locationset array
11811181 *
11821182 * @param data {Object} location data object
11831183 * @param lat {number} origin latitude
11941194 }
11951195
11961196 // 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 ) {
11981198 if ( data . distance < maxDistance ) {
11991199 locationset . push ( data ) ;
12001200 }
14421442 maxDistance = mappingObject . distance ;
14431443 page = mappingObject . page ;
14441444 }
1445-
1446- // Enable the visual refresh https://developers.google.com/maps/documentation/javascript/basics#VisualRefresh
1447- google . maps . visualRefresh = true ;
14481445
14491446 // Set the initial page to zero if not set
14501447 if ( typeof page === 'undefined' ) {
You can’t perform that action at this time.
0 commit comments