Skip to content

Commit 8b81218

Browse files
committed
Reformat comment
1 parent b15a846 commit 8b81218

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ScrollManagementMixin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ function shouldUpdateScrollPosition(state, prevState) {
1212
var { location, branch } = state;
1313
var { location: prevLocation, branch: prevBranch } = prevState;
1414

15-
// On browser load, when having an onEnter event with a redirect
16-
// on the transition prevLocation is null, so assume we don't
17-
// want to update the scroll position
15+
// When an onEnter hook uses transition.to to redirect
16+
// on the initial load prevLocation is null, so assume
17+
// we don't want to update the scroll position.
1818
if (prevLocation === null)
1919
return false;
2020

0 commit comments

Comments
 (0)