Commit Graph

66 Commits

Author SHA1 Message Date
vvakame
7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
vvakame
41f24da0a5 adhoc fix marionette/marionette-tests.ts 2016-02-23 11:35:49 +09:00
delphinus
690e9db4f6 Add internal properties extended for Marionette.View 2016-01-20 21:28:03 +09:00
delphinus
64be42a608 Add currentView property for Marionette.Region 2016-01-15 12:41:48 +09:00
delphinus
73b8fac832 Add tests for LayoutView & CollectionView 2016-01-13 00:25:15 +09:00
delphinus
69efd3471a Add methods & fix comments for LayoutView 2016-01-13 00:25:11 +09:00
delphinus
3e6e0b6de6 Add methods & fix comments for CollectionView 2016-01-12 22:45:21 +09:00
Ben Coveney
05d51cc1e0 Updated Application constructor to accept options 2015-10-22 13:28:58 +01:00
Masahiro Wakame
03a7a661af Merge pull request #5009 from Softpagehomeware/feature/marionette/layout_view_options
Added LayoutViewOption because the Layout can have additional regions in it.
2015-08-21 22:35:13 +09:00
Masahiro Wakame
ecbdfe2832 Merge pull request #4907 from Softpagehomeware/bugfix/marionette/generics_for_collections
fixed the Collection- / Composite child view issue.
2015-08-21 22:34:32 +09:00
Sascha Thiel
15520b4269 added LayoutViewOption because the Layout can have regions in it. 2015-07-21 13:52:47 +02:00
Frederik Wordenskjold
98b7b8ef2c Added getRegion method to marionette.d.ts 2015-07-13 15:59:21 +02:00
Sascha Thiel
5c5275f573 adjusted the tests. Added the possible arguments to the generic constructor. 2015-07-13 10:44:07 +02:00
Sascha Thiel
1a46ba29e1 fixed the Collection- / Composite child view issue. The child view does not necessarily have the same model as the Collection- / CompositeView 2015-07-13 10:11:18 +02:00
Sascha Thiel
0deb573197 added the missing ui property 2015-05-22 15:00:44 +02:00
Yui T
a88024c770 Update breaking change from parsing class declaration in strict mode (as specified in ES6) 2015-04-08 11:35:43 -07:00
Jiawei Li
057862fe25 fix(marionette): generi-fy Backbone.Babysitter.map 2015-02-17 18:52:59 -08:00
Masahiro Wakame
b0d6af27f4 Merge pull request #3578 from davetayls/feature/marionette-triggerMethod
added triggerMethod to Marionette.Controller
2015-02-04 21:25:50 +09:00
davetayls
feec83a5d5 added triggerMethod to Marionette.Controller as described https://github.com/marionettejs/backbone.marionette/blob/master/src/controller.js#L33 2015-02-01 20:22:50 +00:00
davetayls
1bcd371e60 added getOption to view 2015-01-29 09:28:44 +00:00
davetayls
ead784855c added triggers test to Marionette.View 2015-01-28 09:51:42 +00:00
davetayls
e22e40d90f add triggers to Marionette.View 2015-01-28 09:47:38 +00:00
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