MCPcopy Index your code
hub / github.com/devote/HTML5-History-API / firePopState

Function firePopState

history.js:818–828  ·  view source on GitHub ↗

* dispatch current state event

()

Source from the content-addressed store, hash-verified

816 * dispatch current state event
817 */
818 function firePopState() {
819 var o = document.createEvent ? document.createEvent('Event') : document.createEventObject();
820 if (o.initEvent) {
821 o.initEvent('popstate', false, false);
822 } else {
823 o.type = 'popstate';
824 }
825 o.state = historyObject.state;
826 // send a newly created events to be processed
827 dispatchEvent(o);
828 }
829
830 /**
831 * fire initial state for non-HTML5 browsers

Callers 2

fireInitialStateFunction · 0.70
onHashChangeFunction · 0.70

Calls 1

dispatchEventFunction · 0.70

Tested by

no test coverage detected