Skip to content

Commit f8561a9

Browse files
yolo2013yyx990803
authored andcommitted
fix some spell error (#589)
* change normalizePosotion to normalizePosition * revert flow syntax
1 parent 6a6c03f commit f8561a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/history/html5.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
saveScrollPosition,
99
getScrollPosition,
1010
isValidPosition,
11-
normalizePosotion,
11+
normalizePosition,
1212
getElementPosition
1313
} from '../util/scroll-position'
1414

@@ -94,10 +94,10 @@ export class HTML5History extends History {
9494
if (el) {
9595
position = getElementPosition(el)
9696
} else if (isValidPosition(shouldScroll)) {
97-
position = normalizePosotion(shouldScroll)
97+
position = normalizePosition(shouldScroll)
9898
}
9999
} else if (isObject && isValidPosition(shouldScroll)) {
100-
position = normalizePosotion(shouldScroll)
100+
position = normalizePosition(shouldScroll)
101101
}
102102

103103
if (position) {

src/util/scroll-position.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function isValidPosition (obj: Object): boolean {
2626
return isNumber(obj.x) || isNumber(obj.y)
2727
}
2828

29-
export function normalizePosotion (obj: Object): Object {
29+
export function normalizePosition (obj: Object): Object {
3030
return {
3131
x: isNumber(obj.x) ? obj.x : window.pageXOffset,
3232
y: isNumber(obj.y) ? obj.y : window.pageYOffset

0 commit comments

Comments
 (0)