From 040418a3648238eb253ebe50d1ccc4db37a1b0aa 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 d7dcfea83..58633a6ef 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