backbone.marionette
Advanced tools
Changelog
v1.8.5 view commit logs
Changelog
v1.8.4 view commit logs
Changelog
v1.8.3 view commit logs
Changelog
v1.8.2 view commit logs
stopListening
on close.modelEvents
and collectionEvents
when the parent view calls undelegateEvents
.Changelog
v1.8.0 view commit logs
Update Gruntfile.
The default task (grunt
) now runs tests.
$ grunt dev
watch for watching.
$ grunt build
runs the tests and compiles.
Add better inline documentation for module implementation.
Add better inline behavior documentation.
Fixes
modelEvents
and collectionEvents
.CollectionView
now triggers close on its children in the correct order.Features
onRoute
to the appRouter
. Marionette.AppRouter.extend({
onRoute: function(route, params) {
}
})
Region.show
now takes an option to prevent closing the previous view in the region. By default a region will automatically close the previous view, however you can prevent this behavior by passing {preventDestroy: true}
in the options parameter.myRegion.show(view2, { preventDestroy: true })
Add a getRegion
method to Layout
. This is in line with the eventual goal of not attaching regions to the root layout object.
Behavior instances now extend from Backbone.Events, allowing you to use .listenTo
and .on
.
Allow Behaviors to have a functional hash lookup.
Marionette.ItemView.extend({
behaviors: function() {
// “this” will refer to the view instance
return : {
BehaviorA: {}
}
}
})
stopListening
on a regions on removal.Refactors
Tests
bindEntitiyEvents
and unbindEntityEvents
.regionManager
.Changelog
v1.7.4 view commit logs
General
Fixes
stopListening
call on stop
for modules. While this was a "fix", the docs were quite vague leading to breaking changes for many people.startWithParent
is now respected when using a moduleClass
property.Changelog
v1.7.3 view commit logs
Behaviors
@ui
interpolation within the events hash on a behavior.Fixes
Changelog
v1.7.2 view commit logs