true
add()
replace()
window.onhashchange
hashchange
_config.initialState
null
Y.Global
newVal
prevVal
undefined
* If true (the default), the new state will be merged * into the existing state. New values will override existing values, * and null or undefined values will be * removed from the state. *
* If false, the existing state will be discarded as a * whole and the new state will take its place. *
false
addValue()
* Dynamic event fired when an individual history item is added or * changed. The name of this event depends on the name of the key that * changed. To listen to change events for a key named "foo", subscribe * to the fooChange event; for a key named "bar", subscribe * to barChange, etc. *
fooChange
barChange
* Key-specific events are only fired for instance-level changes; that * is, changes that were made via the same History instance on which the * event is subscribed. To be notified of changes made by other History * instances, subscribe to the global history:change event. *
history:change
* Dynamic event fired when an individual history item is removed. The * name of this event depends on the name of the key that was removed. * To listen to remove events for a key named "foo", subscribe to the * fooRemove event; for a key named "bar", subscribe to * barRemove, etc. *
fooRemove
barRemove