DefinitelyTyped/backbone
Jared Pochtar de92542c55 Router.routes, View.events, and Model.defaults -> method form
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.
2013-08-19 19:56:50 -04:00
..
backbone-tests.ts Fix test, remove duplicated declaration for _ and $. 2013-06-22 11:43:21 -03:00
backbone.d.ts Router.routes, View.events, and Model.defaults -> method form 2013-08-19 19:56:50 -04:00