Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: server/static/bower_components/html5-history-anchor/html5-history-anchor.js

Issue 1695893004: RPC Explorer (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@rpcepxlorer-deps
Patch Set: 80 chars Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 !function(){function t(t){if(!t.ctrlKey&&!t.metaKey&&2!==t.which){if(this.hasAtt ribute("pushstate")&&(window.history.pushState(JSON.parse(this.getAttribute("sta te")),this.getAttribute("title"),this.getAttribute("href")),t.preventDefault()), this.hasAttribute("replacestate")&&(window.history.replaceState(JSON.parse(this. getAttribute("state")),this.getAttribute("title"),this.getAttribute("href")),t.p reventDefault()),this.hasAttribute("popstate")){try{var e=new PopStateEvent("pop state",{bubbles:!1,cancelable:!1,state:window.history.state});"dispatchEvent_"in window?window.dispatchEvent_(e):window.dispatchEvent(e)}catch(i){var a=document .createEvent("CustomEvent");a.initCustomEvent("popstate",!1,!1,{state:window.his tory.state}),window.dispatchEvent(a)}t.preventDefault()}if(this.hasAttribute("go ")){var r=this.getAttribute("go");r=r?parseInt(r):0,window.history.go(r),t.preve ntDefault()}this.hasAttribute("back")&&(window.history.back(),t.preventDefault() ),this.hasAttribute("forward")&&(window.history.forward(),t.preventDefault())}}v ar e=Object.create(HTMLAnchorElement.prototype);e.createdCallback=function(){thi s.addEventListener("click",t,!1)},document.registerElement("html5-history-anchor ",{prototype:e,"extends":"a"})}();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698