Add route info to ReplayPoint while routing
This commit is contained in:
parent
d94cd5f978
commit
0d7f4a8deb
@ -20,6 +20,7 @@ class RelayPoint
|
||||
typeof internal !== 'undefined' ? internal : false
|
||||
);
|
||||
|
||||
this.route = null;
|
||||
this.value = internal ? uri : stripURI( uri );
|
||||
this.params = Array.prototype.slice.call( arguments, 2 );
|
||||
}
|
||||
@ -108,6 +109,7 @@ class Router extends EventEmitter
|
||||
setRoute( _route, _match )
|
||||
{
|
||||
var _self = this;
|
||||
this.relaying.route = _route;
|
||||
this.routeObj = {
|
||||
route: _route
|
||||
, match: _match
|
||||
|
Loading…
Reference in New Issue
Block a user