Skip to content

v2.2.0

Compare
Choose a tag to compare
@samccone samccone released this 09 Sep 22:09
· 1149 commits to master since this release
  • Features
    • Normalize region selectors hash to allow a user to use the @ui. syntax
    • Marionette.triggerMethodOn
      • triggerMethodOn invokes triggerMethod on a specific context
    • Marionette.Error
      • captureStackTrace cleans up stack traces
    • add view _behaviors reference to associated behaviors
      • enabling you to easily test and spy on your behaviors
    • CollectionViews now receive events from emptyViews in the childEvents hash
    • Regions now receive swapOut and beforeSwapOut events.
    • Application has this.options
    • Application has initialize method
    • Behaviors no longer wrap view methods
  • Bug Fixes
    • LayoutView’s regions are scoped inside it’s el
    • Fix inconsistent Marionette.Object constructor implementation.
    • emptyView instances now proxy their events up to the collection / compositeView
    • collection / compositeView does not listen to collection add/remove/reset events until after render.
    • Marionette.normalizeUIKeys no longer mutates UI hash
  • Better Errors
    • View destroyed error now includes the view cid in the error message.
    • Throw an error when Marionette.bindEntityEvents is not an object or funcunction
    • Throw a descriptive error for collectionViews
      • If you do not pass a valid collectionView instance you are now given a logical error.
  • Documentation Improvements
    • New API docs are in progress
    • Examples have been cleaned up