File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,12 @@ module.exports = function($window, mountRedraw) {
139
139
}
140
140
141
141
function setPath ( path , data , options ) {
142
+ if ( lastUpdate != null ) {
143
+ options = options || { }
144
+ options . replace = true
145
+ }
146
+ lastUpdate = null
147
+
142
148
path = buildPathname ( path , data )
143
149
if ( ready ) {
144
150
fireAsync ( )
@@ -181,14 +187,7 @@ module.exports = function($window, mountRedraw) {
181
187
mountRedraw . mount ( root , RouterRoot )
182
188
resolveRoute ( )
183
189
}
184
- route . set = function ( path , data , options ) {
185
- if ( lastUpdate != null ) {
186
- options = options || { }
187
- options . replace = true
188
- }
189
- lastUpdate = null
190
- setPath ( path , data , options )
191
- }
190
+ route . set = setPath
192
191
route . get = function ( ) { return currentPath }
193
192
route . prefix = "#!"
194
193
route . Link = {
You can’t perform that action at this time.
0 commit comments