FIX: If you hit back while a `replaceState` was queued up it would
update the URL even after navigating.
This commit is contained in:
parent
a34037b26c
commit
0b368993b7
|
@ -98,7 +98,11 @@ Discourse.TopicRoute = Discourse.Route.extend({
|
|||
}
|
||||
},
|
||||
|
||||
willTransition: function() { isTransitioning = true; return true; }
|
||||
willTransition: function() {
|
||||
Em.run.cancel(scheduledReplace);
|
||||
isTransitioning = true;
|
||||
return true;
|
||||
}
|
||||
},
|
||||
|
||||
// replaceState can be very slow on Android Chrome. This function debounces replaceState
|
||||
|
|
Loading…
Reference in New Issue