backbone.marionette
Advanced tools
Changelog
v1.7.0 view commit logs
Version 1.7 represents a significant step in formalizing the ways to improve your view
code though reusable behaviors
. Say goodbye to custom mixin strategies and welcome behaviors
into town.
Behaviors
A Behavior
is an isolated set of DOM / user interactions that can be mixed into any View
. Behaviors
allow you to blackbox View
specific interactions into portable logical chunks, keeping your views
simple and your code DRY. Read the docs here.
Modules
Events
Docs
Tests
General
~
to ^
for trusted dependencies.Changelog
v1.6.4 view commit logs
Changelog
v1.6.3 view commit logs
Enable more direct module instantiation on Marionette.App
.
var ItemModule = Marionette.Module.extend({
startWithParent: false,
initialize: function(options) {},
onStart: function() {}
});
// ...
this.app.module('Items', ItemModule);
ui
hash interpolation now supports a functional ui
hash.
ui: function() {
return {
"foo": ".foo"
}
}
Fixes
Fix @ui
interpolation for handling complex selectors.
{
"click div:not(@ui.bar)": "tapper"
}
Bump backbone.babysitter
and backbone.wreqr
versions.
General
CollectionView
, AppRouter
and ItemView
.throwError
helper method._
type checks for non performant code to improve readability and consistency.Changelog
v1.6.1 view commit logs
Changelog
v1.2.3 view commit logs
child views
were being added before the initial render, thus raising errors.Changelog
v1.2.0 view commit logs
Update Backbone to 1.1.0
Views
triggers
preventDefault and stopPropagationCollection View / CompositeView
getEmptyView
for dynamic emptyView
lookupsChangelog
v1.0.4 view commit logs
ItemView
constructor
function back - it added lots of things and needed to be thereCompositeView
Layout
Changelog
v1.0.3 view commit logs
ItemView
constructor
function - it added nothing and didn't need to be thereCompositeView
index
parameter to method signature, to show that it is availableconstructor
function and removed call to getItemView
as it was causing problems and was not needed in the constructor.All Views
stopListening
would not unbind the event handlersRenderer / All Views
Renderer.render
method will throw a more meaningful error if the supplied template is falseyRegion
show
event when showing a view (updated the code to work like the docs already said)currentView
before triggering the show
events from the region / viewRegionManager
.length
when a region is removedChangelog
v1.0.2 view commit logs
UI Elements
onClose
method, so the ui
elements are available during theseAppRouter