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 @@ -189,7 +189,7 @@ var RouterMixin = {
189
189
190
190
this . delegateSetRoutingState ( state , function ( ) {
191
191
if ( this . props . onNavigation ) {
192
- this . props . onNavigation ( ) ;
192
+ this . props . onNavigation ( path , navigation ) ;
193
193
}
194
194
cb ( ) ;
195
195
} . bind ( this ) ) ;
Original file line number Diff line number Diff line change @@ -232,14 +232,14 @@ describe('Routing', function() {
232
232
beforeNavigationHandler : function ( nextPath ) {
233
233
called . push ( nextPath ) ;
234
234
} ,
235
- navigationHandler : function ( ) {
236
- called . push ( 'onNavigation' ) ;
235
+ navigationHandler : function ( path ) {
236
+ called . push ( path ) ;
237
237
}
238
238
} ) ;
239
239
router . navigate ( '/__zuul/hello' , function ( ) {
240
240
assert . equal ( called . length , 2 ) ;
241
241
assert . equal ( called [ 0 ] , '/__zuul/hello' ) ;
242
- assert . equal ( called [ 1 ] , 'onNavigation ' ) ;
242
+ assert . equal ( called [ 1 ] , '/__zuul/hello ' ) ;
243
243
done ( ) ;
244
244
} ) ;
245
245
} ) ;
You can’t perform that action at this time.
0 commit comments