rename Router to Router_OLD

This commit is contained in:
Adam Bradley
2015-06-29 11:17:52 -05:00
parent 28b77b0fbc
commit 8c48693bf7
7 changed files with 34 additions and 44 deletions

View File

@ -209,9 +209,9 @@ export class Routable {
this.routeInfo = routeInfo;
//console.log('New routable', componentClass, routeInfo);
Router.on(this.routeInfo.url, (routeParams) => {
Router_OLD.on(this.routeInfo.url, (routeParams) => {
console.log('Routable matched', routeParams, this.componentClass);
Router.push(this.componentClass, routeParams);
Router_OLD.push(this.componentClass, routeParams);
});
componentClass.router = this;
@ -223,7 +223,7 @@ export class Routable {
// Bind some lifecycle events
componentInstance._viewWillEnter.observer({
next: () => {
Router.emit(this.routeInfo.url);
Router_OLD.emit(this.routeInfo.url);
}
});
@ -232,6 +232,6 @@ export class Routable {
}
var Router = new RouterController();
var Router_OLD = new RouterController();
export { Router, Route, Routable };
export { Router_OLD, Route, Routable };