refs bug 969248: added event.state check to prevent #anchor link triggered window.location.reload calls
whitespace, comments
Merge fix for page reloading on anchor clicks. Fix bug 969248.