Skip to content

v2.4.3

Compare
Choose a tag to compare
@ahumphreys87 ahumphreys87 released this 10 Sep 14:10
· 935 commits to master since this release

v2.4.3 view commit logs

Fixes

  • TemplateCache#loadTemplate accepts empty script-tag templates.
  • Parent LayoutView's childEvents continue working with views attached manually using Region#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 a false 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 and emptyView can be pure Backbone.View classes.

Docs

  • Better documentation around view childEvents that reinforces the distinction between child view triggers and events.
  • Guidance on achieving full event lifecycle while using Backbone.View as the child view within CollectionViews or LayoutViews/Regions.

Misc

  • LayoutView#showChildView new options argument passed to underlying Region#show to enable full show functionality.
  • 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, and dom:refresh lifecycle events when shown by CollectionViews or LayoutViews/Regions.
  • Bumped Backbone dependency to 1.2.3