Skip to content

Commit ccceaea

Browse files
committed
Left a couple of console.logs, which was causing IE to hang
1 parent 32fe503 commit ccceaea

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

js/jquery.storelocator.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* storeLocator v1.0 - jQuery store locator plugin
2+
* storeLocator v1.0.1 - jQuery store locator plugin
33
* Version: 1.0
44
* (c) Copyright 2012, Bjorn Holine (http://www.bjornblog.com)
55
* Released under the MIT license
@@ -71,7 +71,7 @@ $.fn.storeLocator = function(options) {
7171

7272
//Process form input
7373
$(function() {
74-
$("#" + settings.formID).live("submit", function(e){
74+
$(document).on('submit', '#' + settings.formID, function(e){
7575
//Stop the form submission
7676
e.preventDefault();
7777
//Get the user input and use it
@@ -203,9 +203,7 @@ $.fn.storeLocator = function(options) {
203203
//Add markers and infowindows loop
204204
for (var y = 0; y <= storenum; y++)
205205
{
206-
console.log(y);
207206
var letter = String.fromCharCode("A".charCodeAt(0) + y);
208-
console.log(letter);
209207
var point = new google.maps.LatLng(locationset[y][2], locationset[y][3]);
210208
marker = createMarker(point, locationset[y][1], locationset[y][4], letter);
211209
markers[y] = marker;

js/jquery.storelocator.min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)