Clean code.

This commit is contained in:
Lars Jung 2015-04-28 01:24:26 +02:00
parent 594653a753
commit 530e9c3859

View file

@ -178,10 +178,10 @@ modulejs.define('core/location', ['_', 'modernizr', 'core/event', 'core/notify',
if (history) {
window.onpopstate = function (e) {
window.onpopstate = function (ev) {
if (e.state && e.state.absHref) {
setLocation(e.state.absHref, true);
if (ev.state && ev.state.absHref) {
setLocation(ev.state.absHref, true);
}
};
}