Skip to content

Commit

Permalink
Fixes a state issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
asual committed Dec 1, 2011
1 parent bd76f82 commit e530196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.address.js
Expand Up @@ -610,7 +610,7 @@
e.preventDefault();
var value = fn ? fn.call(this) :
/address:/.test($(this).attr('rel')) ? $(this).attr('rel').split('address:')[1].split(' ')[0] :
$.address.state() !== undefined && $.address.state() != '/' ?
$.address.state() !== undefined && !/^\/?$/.test($.address.state()) ?
$(this).attr('href').replace(new RegExp('^(.*' + $.address.state() + '|\\.)'), '') :
$(this).attr('href').replace(/^(#\!?|\.)/, '');
$.address.value(value);
Expand Down

0 comments on commit e530196

Please sign in to comment.