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
This commit is contained in:
Ben Coveney
2015-10-23 10:27:29 +01:00
parent 3191f6e008
commit fa7fcd32f3

View File

@@ -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;