dist/assets/js/plugins/storeLocator/jquery.storelocator.js
function () {
			this.writeDebug('reset');
			locationset = [];
			featuredset = [];
			normalset = [];
			markers = [];
			firstRun = false;
			$(document).off('click.'+pluginName, '.' + this.settings.locationList + ' li');

			if ( $('.' + this.settings.locationList + ' .bh-sl-close-directions-container').length ) {
				$('.bh-sl-close-directions-container').remove();
			}

			if (this.settings.inlineDirections === true) {
				// Remove directions panel if it's there
				var $adp = $('.' + this.settings.locationList + ' .adp');
				if ( $adp.length > 0 ) {
					$adp.remove();
					$('.' + this.settings.locationList + ' ul').fadeIn();
				}
				$(document).off('click', '.' + this.settings.locationList + ' li .loc-directions a');
			}

			if (this.settings.pagination === true) {
				$(document).off('click.'+pluginName, '.bh-sl-pagination li');
			}
		}
function () {
			this.writeDebug('reset');
			locationset = [];
			featuredset = [];
			normalset = [];
			markers = [];
			firstRun = false;
			$(document).off('click.'+pluginName, '.' + this.settings.locationList + ' li');

			if ( $('.' + this.settings.locationList + ' .bh-sl-close-directions-container').length ) {
				$('.bh-sl-close-directions-container').remove();
			}

			if (this.settings.inlineDirections === true) {
				// Remove directions panel if it's there
				var $adp = $('.' + this.settings.locationList + ' .adp');
				if ( $adp.length > 0 ) {
					$adp.remove();
					$('.' + this.settings.locationList + ' ul').fadeIn();
				}
				$(document).off('click', '.' + this.settings.locationList + ' li .loc-directions a');
			}

			if (this.settings.pagination === true) {
				$(document).off('click.'+pluginName, '.bh-sl-pagination li');
			}
		}
function ( ) { this . writeDebug ( 'reset' ) ; locationset = [ ] ; featuredset = [ ] ; normalset = [ ] ; markers = [ ] ; firstRun = false ; $ ( document ) . off ( 'click.' + pluginName , '.' + this . settings . locationList + ' li' ) ; if ( $ ( '.' + this . settings . locationList + ' .bh-sl-close-directions-container' ) . length ) { $ ( '.bh-sl-close-directions-container' ) . remove ( ) ; } if ( this . settings . inlineDirections === true ) { // Remove directions panel if it's there var $adp = $ ( '.' + this . settings . locationList + ' .adp' ) ; if ( $adp . length > 0 ) { $adp . remove ( ) ; $ ( '.' + this . settings . locationList + ' ul' ) . fadeIn ( ) ; } $ ( document ) . off ( 'click' , '.' + this . settings . locationList + ' li .loc-directions a' ) ; } if ( this . settings . pagination === true ) { $ ( document ) . off ( 'click.' + pluginName , '.bh-sl-pagination li' ) ; } }
Reset function
This method clears out all the variables and removes events. It does not reload the map.
Reset function This method clears out all the variables and removes events . It does not reload the map .