@@ -56,15 +56,15 @@ class History {
56
56
if ( typeof this . readState === 'function' )
57
57
state = this . readState ( entry . key ) ;
58
58
59
- this . _handleChange ( path , state , entry , NavigationTypes . POP , false ) ;
59
+ this . _update ( path , state , entry , NavigationTypes . POP , false ) ;
60
60
}
61
61
62
62
handlePop ( path , entry = { } ) {
63
63
var state = null ;
64
64
if ( entry . key && typeof this . readState === 'function' )
65
65
state = this . readState ( entry . key ) ;
66
66
67
- this . _handleChange ( path , state , entry , NavigationTypes . POP ) ;
67
+ this . _update ( path , state , entry , NavigationTypes . POP ) ;
68
68
}
69
69
70
70
createRandomKey ( ) {
@@ -103,7 +103,7 @@ class History {
103
103
this . constructor . name
104
104
) ;
105
105
106
- this . _handleChange ( path , state , entry , NavigationTypes . PUSH ) ;
106
+ this . _update ( path , state , entry , NavigationTypes . PUSH ) ;
107
107
}
108
108
109
109
replaceState ( state , path ) {
@@ -117,7 +117,7 @@ class History {
117
117
this . constructor . name
118
118
) ;
119
119
120
- this . _handleChange ( path , state , entry , NavigationTypes . REPLACE ) ;
120
+ this . _update ( path , state , entry , NavigationTypes . REPLACE ) ;
121
121
}
122
122
123
123
back ( ) {
@@ -128,7 +128,7 @@ class History {
128
128
this . go ( 1 ) ;
129
129
}
130
130
131
- _handleChange ( path , state , entry , navigationType , notify = true ) {
131
+ _update ( path , state , entry , navigationType , notify = true ) {
132
132
this . path = path ;
133
133
this . location = this . _createLocation ( path , state , entry , navigationType ) ;
134
134
0 commit comments