File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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 ) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments