Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not reload page if location.href has not changed #25

Open
orslumen opened this issue Apr 12, 2011 · 0 comments
Open

Do not reload page if location.href has not changed #25

orslumen opened this issue Apr 12, 2011 · 0 comments

Comments

@orslumen
Copy link

If the document location is set to a similar URL, do not reload the page.

To fix this I added the following line of code, but I can imagine the URL comparison can be optimized (e.g. by removing blanks at the end of the url):

set href(url) {
  if (url === $url || url+'#' === $url || url === $url+'#') { return; }
  ...
}

See orslumen@a72ff2e

SkUrRiEr pushed a commit to SkUrRiEr/env-js that referenced this issue Mar 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant