marionette v2.4.3 Release Notes
-
๐ Fixes
TemplateCache#loadTemplate
accepts empty script-tag templates.- Parent LayoutView's
childEvents
continue working with views attached manually usingRegion#attachView
. - When an array of items (length > 1) are added to a collection backing a CollectionView using the
at
option, the child views are appended to the DOM in the proper order. - When models are added to a collection backing a CollectionView with the
at
option, the child views are rendered in the proper order even when the CollectionView has a filter. CollectionView#isEmpty
respects afalse
return value even when there are no child views.Region#empty
reliably destroys views when called with options.- CollectionView child views can, in turn, render children within
onBeforeShow
as documented. - CollectionView
childView
andemptyView
can be pureBackbone.View
classes.
๐ Docs
- ๐ Better documentation around view
childEvents
that reinforces the distinction between child viewtriggers
andevents
. - Guidance on achieving full event lifecycle while using
Backbone.View
as the child view within CollectionViews or LayoutViews/Regions.
Misc
- ๐ Allow
Application
to be initialized with multiple arguments for consistency with earlier releases. - โ
More comprehensive support for Backbone child views, including a more rigorous test suite and support for
render
,destroy
, anddom:refresh
lifecycle events when shown by CollectionViews or LayoutViews/Regions. - โฌ๏ธ Bumped Backbone dependency to 1.2.3