Skip to content

Commit 06ed4f1

Browse files
committed
Merge pull request #962 from zupzup/master
[fixed] actionType missing from HashLocation redirect
2 parents 4a8b756 + 4af3c18 commit 06ed4f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/locations/HashLocation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ function onHashChange() {
3636
// changed. It was probably caused by the user clicking the Back
3737
// button, but may have also been the Forward button or manual
3838
// manipulation. So just guess 'pop'.
39-
notifyChange(_actionType || LocationActions.POP);
39+
var curActionType = _actionType;
4040
_actionType = null;
41+
notifyChange(curActionType || LocationActions.POP);
4142
}
4243
}
4344

0 commit comments

Comments
 (0)