From a277224ef4b197870f3c912de8bc6135281f0856 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 17 Jan 2016 01:29:34 +1100 Subject: Reverted docs.js changes --- docs/src/js/docs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/src') diff --git a/docs/src/js/docs.js b/docs/src/js/docs.js index 8b61e3d1..dd891f07 100644 --- a/docs/src/js/docs.js +++ b/docs/src/js/docs.js @@ -33,9 +33,9 @@ shr.setup({ buttons[i].addEventListener('click', newSource); } - window.addEventListener('popstate', function(event) { + /*window.addEventListener('popstate', function(event) { console.log(event); - }); + });*/ function toggleClass(element, className, state) { if (element) { @@ -117,9 +117,9 @@ shr.setup({ break; } - if (window.history && window.history.pushState) { + /*if (window.history && window.history.pushState) { history.pushState({ 'type': type }, '', '#' + type); - } + }*/ for (var x = buttons.length - 1; x >= 0; x--) { toggleClass(buttons[x].parentElement, 'active', false); -- cgit v1.2.3