Changed declaration of Backbone.Router.routes. This is not neccessarily a function, but may also be a simple hash.

This commit is contained in:
Peter Palotas
2014-12-29 11:13:58 +01:00
parent 02e28cc4b2
commit a5366e6012
+1 -1
View File
@@ -275,7 +275,7 @@ declare module Backbone {
* For assigning routes as object hash, do it like this: this.routes = <any>{ "route": callback, ... };
* That works only if you set it in the constructor or the initialize method.
**/
routes(): any;
routes: any;
constructor(options?: RouterOptions);
initialize(options?: RouterOptions): void;