From fa7fcd32f337a98c8a7f891e3f68e7b8a9122a79 Mon Sep 17 00:00:00 2001 From: Ben Coveney Date: Fri, 23 Oct 2015 10:27:29 +0100 Subject: [PATCH] Backbone: Fixed History.Started being undefined The History.started flag is set on the class rather than on the class instance (as it is set once globally). Attempts to read *Backbone.history.started* (via the global history instance) always return undefined. Instead the typing should be static member (*Backbone.History.started* is where the correct value is located). This can be seen at http://backbonejs.org/docs/backbone.html#section-203 --- backbone/backbone-global.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone/backbone-global.d.ts b/backbone/backbone-global.d.ts index 4e40687a8c..734ba1b949 100644 --- a/backbone/backbone-global.d.ts +++ b/backbone/backbone-global.d.ts @@ -301,7 +301,7 @@ declare module Backbone { checkUrl(e?: any): void; loadUrl(fragmentOverride: string): boolean; navigate(fragment: string, options?: any): boolean; - started: boolean; + static started: boolean; options: any; private _updateHash(location: Location, fragment: string, replace: boolean): void;