Skip to content

Commit 4822108

Browse files
committed
IE8 doesn't support trim
Replaced with the jQuery version to ensure compatibility.
1 parent 4e99aa5 commit 4822108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/jquery.storelocator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@
538538
}
539539

540540
// If there is already have a value in the address bar
541-
if ( $('#' + this.settings.addressID).val().trim() !== ''){
541+
if ($.trim($('#' + this.settings.addressID).val()) !== ''){
542542
_this.writeDebug('Using Address Field');
543543
_this.processForm(null);
544544
doAutoGeo = false; // No need for additional processing

0 commit comments

Comments
 (0)