mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
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:
2
backbone/backbone-global.d.ts
vendored
2
backbone/backbone-global.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user