Merge pull request #557 from artemave/patch-1
Animated transition on `window.history.back()`
This commit is contained in:
Коммит
7187e60bd8
|
@ -22,9 +22,10 @@
|
||||||
var maxCacheLength = 20;
|
var maxCacheLength = 20;
|
||||||
var cacheMapping = sessionStorage;
|
var cacheMapping = sessionStorage;
|
||||||
var domCache = {};
|
var domCache = {};
|
||||||
|
// Change these to unquoted camelcase in the next major version bump
|
||||||
var transitionMap = {
|
var transitionMap = {
|
||||||
slideIn : 'slide-out',
|
'slide-in' : 'slide-out',
|
||||||
slideOut : 'slide-in',
|
'slide-out' : 'slide-in',
|
||||||
fade : 'fade'
|
fade : 'fade'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -239,7 +240,7 @@
|
||||||
url : window.location.href,
|
url : window.location.href,
|
||||||
title : document.title,
|
title : document.title,
|
||||||
timeout : options.timeout,
|
timeout : options.timeout,
|
||||||
transition : null
|
transition : options.transition
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче