docs/amplify-theme/assets/js/scripts.js
function() {
		this.scrollToCurrent();
		window.addEventListener('hashchange', this.scrollToCurrent.bind(this));
		document.body.addEventListener('click', this.delegateAnchors.bind(this));
	  }
function() {
		this.scrollToCurrent();
		window.addEventListener('hashchange', this.scrollToCurrent.bind(this));
		document.body.addEventListener('click', this.delegateAnchors.bind(this));
	  }
function ( ) { this . scrollToCurrent ( ) ; window . addEventListener ( 'hashchange' , this . scrollToCurrent . bind ( this ) ) ; document . body . addEventListener ( 'click' , this . delegateAnchors . bind ( this ) ) ; }
Establish events, and fix initial scroll position if a hash is provided.
Establish events and fix initial scroll position if a hash is provided .