Clean code.
This commit is contained in:
parent
594653a753
commit
530e9c3859
@ -178,10 +178,10 @@ modulejs.define('core/location', ['_', 'modernizr', 'core/event', 'core/notify',
|
|||||||
|
|
||||||
|
|
||||||
if (history) {
|
if (history) {
|
||||||
window.onpopstate = function (e) {
|
window.onpopstate = function (ev) {
|
||||||
|
|
||||||
if (e.state && e.state.absHref) {
|
if (ev.state && ev.state.absHref) {
|
||||||
setLocation(e.state.absHref, true);
|
setLocation(ev.state.absHref, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user