From cdb485d94275be1592d2dd0772005dd015fec52e Mon Sep 17 00:00:00 2001 From: Stuart Thompson Date: Fri, 7 Dec 2012 15:39:11 -0800 Subject: [PATCH] Backbone.Router now extends Events The Backbone.Router class did not previously extend Events in the definition file. This caused the TypeScript compiler to raise an error when calling one of the Events methods (such as on()) on an instance of a router. This change allows instances of classes derived from Backbone.Router to call methods on the Events class that are inherited by the router. --- backbone/backbone-0.9.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone/backbone-0.9.d.ts b/backbone/backbone-0.9.d.ts index d7dcfea839..58633a6efe 100644 --- a/backbone/backbone-0.9.d.ts +++ b/backbone/backbone-0.9.d.ts @@ -180,7 +180,7 @@ declare module Backbone { zip(...model: Model[]): Model[]; } - export class Router { + export class Router extends Events { static extend(properties: any, classProperties?: any): any; // do not use, prefer TypeScript's extend functionality