Comparing version 0.0.16 to 0.0.17
@@ -9,6 +9,6 @@ import { IHistory, IHistoryNavigateEvent } from "../types"; | ||
setPath(path: string, replace: boolean): void; | ||
goBack(): void; | ||
goForward(): void; | ||
goBack(): boolean; | ||
goForward(): boolean; | ||
start(): void; | ||
stop(): void; | ||
} |
@@ -26,5 +26,7 @@ "use strict"; | ||
history.back(); | ||
return true; | ||
}; | ||
BrowserHistory.prototype.goForward = function () { | ||
history.forward(); | ||
return true; | ||
}; | ||
@@ -31,0 +33,0 @@ BrowserHistory.prototype.start = function () { |
@@ -9,6 +9,6 @@ import { IHistory, IHistoryNavigateEvent } from "../types"; | ||
setPath(path: string, replace: boolean): void; | ||
goBack(): void; | ||
goForward(): void; | ||
goBack(): boolean; | ||
goForward(): boolean; | ||
start(): void; | ||
stop(): void; | ||
} |
@@ -29,5 +29,7 @@ "use strict"; | ||
history.back(); | ||
return true; | ||
}; | ||
HashHistory.prototype.goForward = function () { | ||
history.forward(); | ||
return true; | ||
}; | ||
@@ -34,0 +36,0 @@ HashHistory.prototype.start = function () { |
@@ -9,6 +9,6 @@ import { IHistory, IHistoryNavigateEvent } from "../types"; | ||
setPath(path: string, replace: boolean): void; | ||
goBack(): void; | ||
goForward(): void; | ||
goBack(): boolean; | ||
goForward(): boolean; | ||
start(): void; | ||
stop(): void; | ||
} |
@@ -37,3 +37,5 @@ "use strict"; | ||
this.onNavigate(this.currentPath); | ||
return true; | ||
} | ||
return false; | ||
} | ||
@@ -46,3 +48,5 @@ }; | ||
this.onNavigate(this.currentPath); | ||
return true; | ||
} | ||
return false; | ||
} | ||
@@ -49,0 +53,0 @@ }; |
@@ -119,6 +119,6 @@ /** | ||
setPath(path: string, replace: boolean): void; | ||
goBack(): void; | ||
goForward(): void; | ||
goBack(): boolean; | ||
goForward(): boolean; | ||
start(): void; | ||
stop(): void; | ||
} |
{ | ||
"name": "steersman", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "Lightweight JS router for browsers & node", | ||
@@ -5,0 +5,0 @@ "main": "lib/Router.js", |
Sorry, the diff of this file is not supported yet
114284
1022