Merge pull request #21666 from luckysoni/pr/backbone-history-route-add-param-type

Backbone.History.route may accept string or RegExp as first argument
This commit is contained in:
Armando Aguirre
2017-12-01 14:22:30 -08:00
committed by GitHub
+1 -1
View File
@@ -392,7 +392,7 @@ declare namespace Backbone {
decodeFragment(fragment: string): string;
getSearch(): string;
stop(): void;
route(route: string, callback: Function): number;
route(route: string|RegExp, callback: Function): number;
checkUrl(e?: any): void;
getPath(): string;
matchRoot(): boolean;