42 Commits
Author SHA1 Message Date
vvakame 070fd9d268 remove not required tscparams 2015-01-02 20:48:15 +09:00
Peter Palotas 73604e393a - Added some more missing type annotations. 2014-12-29 11:33:25 +01:00
Peter Palotas 02347482ba - Added a bunch of missing type annotations. 2014-12-29 11:29:36 +01:00
Peter Palotas 02e28cc4b2 Added more tests to Marionette.js 2014-12-29 11:10:56 +01:00
Peter Palotas 6689de6b7f Removed property accessors from test-file since this wasn't liked by CI build. 2014-12-29 00:31:10 +01:00
Peter Palotas 99fcfbd221 Added missing method attachHtml to Region class.
Added initial tests.
2014-12-29 00:28:49 +01:00
Peter Palotas 6e46947d53 Added Marionette.Behavior and Marionette.Behaviors classes (new in Marionette 2.XX).
Modified ui property to not neccessarily be a function (it can also be a hash).
2014-12-28 23:54:57 +01:00
Peter Palotas 7b61a5d2f5 Added documentation to Marionette.Application.
Added documentation to Marionette functions.
Added some typings.
2014-12-28 22:46:00 +01:00
Peter Palotas 2875e9f1b7 Added documentation to Marionette.AppRouter. Also made option keys optional since they are not mandatory. 2014-12-28 22:30:56 +01:00
Peter Palotas ad8e1cc5d6 Added documentation to Marionette.LayoutView. 2014-12-28 22:24:56 +01:00
Peter Palotas b9f410e024 - Added documentation to Marionette.CompositeView.
- Added event callback definitions.
- Updated for Marionette 2.3.0.
2014-12-28 21:05:30 +01:00
Peter Palotas 6df70bcd91 - Added documentation to Marionette.CollectionView.
- Fixed many errors in the definition so that it now conforms to version 2.3.0 of Marionette.
2014-12-28 20:58:29 +01:00
Peter Palotas 34d86d59e6 - Added documentation to ItemView.
- Added onXXX declarations and documentation to View and ItemView.
2014-12-28 20:28:40 +01:00
Peter Palotas 245a2440d7 - Added documentation for the Marionette.View class. Added some stronger typing to a couple of methods. 2014-12-28 20:17:14 +01:00
Peter Palotas 8c57d70d06 - Added documentation to Marionette.Renderer 2014-12-28 20:01:48 +01:00
Peter Palotas 988df7b7f4 - Added documentation to Marionette.TemplateCache. Added strong types for parameters and return types of this class. 2014-12-28 19:58:37 +01:00
Peter Palotas c828657164 Added documentation to underscore mixins of RegionManager, and fixed some errors in the definitions there. 2014-12-28 19:51:07 +01:00
Peter Palotas 945a61bd21 - Added documentation to Marionette.RegionManager.
- Added constructor with options to Marionette.RegionManager.
- Added overloads to addRegions with more specific types.
- Specified type of parameter for RegionManager.removeRegion.
2014-12-28 19:32:20 +01:00
Peter Palotas b293be0d51 - Added Marionette.Object, introduced in Marionette version 2.1.0.
- Added JSdoc to Marionette.Controller
- Added getOption method to Marionette.Controller.
- Introduced interfaces for configuration options for Region construction and the Region.show() method.
- Added missing options parameter to Region.show() and Region.attachView()
- Removed method Region.ensureEl() since this does not seem to exist on the Marionette.Region class.
- Removed method Region.open() since this does not seem to exist on the Marionette.Region class.
- Added return-type specifications to methods, instead of relying on implicit any. (Most methods just return 'this').
- Merged a previous commit that removed superfluous generics from several classes that didn't need them.
2014-12-28 15:55:58 +01:00
Peter Palotas 481f28c9f3 Removed superfluous generics from class declarations.
The Application, Region, Module and RegionManager classes were all declared as generic with a Model as a type-argument. However, none of these classes store items of a single model and do not need to be generic. The views are really the only classes that needs generics, so moved the generic to the methods accepting views as arguments instead.
2014-12-28 13:38:05 +01:00
Peter Palotas 33c1eb08b0 Updated marionette.js to comply with version 2.3.0. closeXXX() functions were renamed to destroyXXX() in version 2.0 of marionette, the same time that Layout was renamed to LayoutView which was already incorporated in these definitions. 2014-12-28 12:39:52 +01:00
Jiawei Li d162fc7d9e marionette: Layout => LayoutView typo 2014-12-10 20:08:11 -08:00
unknown 1a8afdce38 change the property ui to be a function to be able to use it in the same way as events 2014-11-14 19:48:18 +01:00
Mohamed Hegazy 2aaa293cb1 Remove quotes from response files 2014-09-02 14:53:39 -07:00
Frederik Wordenskjold 133ace301b Made Wreqr.radio a module 2014-07-29 20:36:17 +02:00
Frederik Wordenskjold a7c4e50743 Added channel support to Marionette.d.ts
Marionette.d.ts includes definitions for Backbone.Wreqr, but does not support the recommended way of using the Wreqr object as seen here: https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.application.md#accessing-the-global-channel

I've added the Channel object, and a definition to the Radio class as well. This is only a means of getting a specific channel through the channel() method, so while it is possible to create an instance of Radio, I've chosen only to include channel() method, and make it static.

This makes it possible to access the instance of a channel with the name 'global' like this (created if not found), as recommended in the above documentation: 
var channel = Backbone.Wreqr.radio.channel('global');
// channel.vent;

Finally, I've made the parameter context of the setHandler method in the Backbone.Wreqr.Handlers class optional, as this adheres to the actual implementation.
2014-07-21 15:35:58 +02:00
Bart van der Schoor 1d345f6c14 cleaned-up headers 2014-06-18 23:31:11 +02:00
Omid K. Rad c4d0c9a551 Backbone Generics 2014-04-24 17:45:31 -07:00
Basarat Ali Syed fcc1ab786a marionette : closes #2027 2014-04-12 18:44:14 +10:00
Sven e496efed37 Typed callback arg to Marionette.Callbacks.add as a Function 2014-02-12 22:22:50 +01:00
Sven 6667394125 Improvment on AppRouter
Added appRoute to Marionette.AppRouter
Removed Controller type on processAppRoutes controller arg
Added AppRouterOptions
2014-02-12 22:11:31 +01:00
Sven b3fa44db17 Added closeRegions to Marionette.Application 2014-02-12 21:55:43 +01:00
Sven 5d6afdcd1e Author Tag 2014-02-10 21:04:12 +01:00
Sven 80f6d4780c Added AMD support 2014-02-10 21:02:18 +01:00
Sven 5f8252b86c Added getRegion to Marionette.Application 2014-02-10 21:01:37 +01:00
vvakame 2708bc05cd Fixed tsc failed on Node.js v0.8.25 2013-10-03 11:23:38 +09:00
vvakame 3fe1f6bc4e Fixed to CI test passing 2013-10-03 10:18:58 +09:00
Boris Yankov f677cca98d Multiple bool => boolean fixes 2013-08-07 18:02:05 +03:00
Boris Yankov dd35f69637 Big replacement: bool with boolean 2013-08-07 16:59:39 +03:00
Natan Vivo a5d0e4d129 Generalize the type definition some methods that accept Views.
Specialize the return for some render() methods.
2013-05-29 22:41:48 -03:00
Natan Vivo bfceceaa15 Improved definition for MarionetteJS. Not perfect, but at least more complete. 2013-05-24 17:00:02 -03:00
Zeeshan Hamid 23d7e0b31e Update backbone and marionette 2013-05-10 16:56:59 -04:00