From a5366e60126b78737d9568347f98a594994ff534 Mon Sep 17 00:00:00 2001 From: Peter Palotas Date: Mon, 29 Dec 2014 11:13:58 +0100 Subject: [PATCH] Changed declaration of Backbone.Router.routes. This is not neccessarily a function, but may also be a simple hash. --- backbone/backbone.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone/backbone.d.ts b/backbone/backbone.d.ts index 0cb827a28..417672458 100644 --- a/backbone/backbone.d.ts +++ b/backbone/backbone.d.ts @@ -275,7 +275,7 @@ declare module Backbone { * For assigning routes as object hash, do it like this: this.routes = { "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;