history.js
function firePopState() {
    var o = document.createEvent ? document.createEvent('Event') : document.createEventObject();
    if (o.initEvent) {
      o.initEvent('popstate', false, false);
    } else {
      o.type = 'popstate';
    }
    o.state = historyObject.state;
    // send a newly created events to be processed
    dispatchEvent(o);
  }
function firePopState() {
    var o = document.createEvent ? document.createEvent('Event') : document.createEventObject();
    if (o.initEvent) {
      o.initEvent('popstate', false, false);
    } else {
      o.type = 'popstate';
    }
    o.state = historyObject.state;
    // send a newly created events to be processed
    dispatchEvent(o);
  }
function firePopState ( ) { var o = document . createEvent ? document . createEvent ( 'Event' ) : document . createEventObject ( ) ; if ( o . initEvent ) { o . initEvent ( 'popstate' , false , false ) ; } else { o . type = 'popstate' ; } o . state = historyObject . state ; // send a newly created events to be processed dispatchEvent ( o ) ; }
dispatch current state event
dispatch current state event