yeah, that's what happens when you do quick fixes using timeouts...

This commit is contained in:
Bartek Szopka
2012-01-12 21:31:18 +01:00
parent c5b1127650
commit 8cd464a926

View File

@@ -185,6 +185,7 @@
// making given step active
var active = null;
var hashTimeout = null;
var select = function ( el ) {
if ( !el || !el.stepData || el == active) {
@@ -216,7 +217,8 @@
//
// and it has to be set after animation finishes, because in chrome it
// causes transtion being laggy
window.setTimeout(function () {
window.clearTimeout( hashTimeout );
hashTimeout = window.setTimeout(function () {
window.location.hash = "#/" + el.id;
}, 1000);