Skip to content
Browse files

Added fix for single quote characters that triggers external change in

Firefox
  • Loading branch information...
1 parent 1a025b1 commit af3dfd09595171c8ada6c4a09baf2fa208b566bb @kycook kycook committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/jquery.address.js
View
4 src/jquery.address.js
@@ -84,7 +84,7 @@
_listen = function() {
if (!_silent) {
var hash = _href(),
- diff = _value != hash;
+ diff = decodeURI(_value) != decodeURI(hash);
if (diff) {
if (_msie && _version < 7) {
_l.reload();
@@ -248,7 +248,7 @@
_st(fn, delay);
},
_popstate = function() {
- if (_value != _href()) {
+ if (decodeURI(_value) != decodeURI(_href())) {
_value = _href();
_update(FALSE);
}

0 comments on commit af3dfd0

Please sign in to comment.
Something went wrong with that request. Please try again.