mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
As of typescript 0.9.1, fields are set after calling the super constructor, so if events, defaults, or routes are set to object literals, they will not be seen by backbone, and will not be bound. The cleanest way to fix this is to define them as methods which return an object hash, as the methods are already on the prototype chain when backbone looks for events/defaults/routes, and backbone supports either objects or functions that when called return objects. |
||
|---|---|---|
| .. | ||
| backbone-tests.ts | ||
| backbone.d.ts | ||