marionette v2.2.0 Release Notes

    • 🔋 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 its 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 function
      • 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