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.
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.
- 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.
- 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.
Added documentation to underscore mixins of RegionManager, and fixed some errors in the definitions there.
- Added documentation to Marionette.TemplateCache. Added strong types for parameters and return types of this class.
- Added documentation to Marionette.Renderer
- Added documentation for the Marionette.View class. Added some stronger typing to a couple of methods.
- Added documentation to ItemView.
- Added onXXX declarations and documentation to View and ItemView.
- Added documentation to Marionette.CollectionView.
- Fixed many errors in the definition so that it now conforms to version 2.3.0 of Marionette.
- Added documentation to Marionette.CompositeView.
- Added event callback definitions.
- Updated for Marionette 2.3.0.
Added documentation to Marionette.LayoutView.
Added documentation to Marionette.AppRouter. Also made option keys optional since they are not mandatory.
Added documentation to Marionette.Application.
Added documentation to Marionette functions.
Added some typings.
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).
Added missing method attachHtml to Region class.
Added initial tests.
Removed property accessors from test-file since this wasn't liked by CI build.
Added more tests to Marionette.js
Changed declaration of Backbone.Router.routes. This is not neccessarily a function, but may also be a simple hash.
- Added a bunch of missing type annotations.