marionette v3.1.0 Release Notes

  • General

    • ๐ŸŽ Performance optimizations for triggerMethod, mergeOptions and other internal event handlers
    • โšก๏ธ Significant render and removal optimizations for CollectionView utilizing Backbone's update event

    ๐Ÿ”‹ Features

    • ๐Ÿ—„ Region.detachView and View.detachChildView were added for removing a view from a region without destroying it. This is preferred to the now deprecated preventDestroy region show/empty option
    • childViewEventPrefix: false will disable auto-proxying of child events to the parent view
    • Application will now accept a region definition object literal as an instantiation option
    • ๐Ÿšš Regions are now destroyed when removed from a View

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fixed an issue with Lodash 4 compatibility related to behavior events

    ๐Ÿ—„ Deprecations

    • ๐Ÿ—„ Region empty's preventDestroy option was deprecated in favor of detachView
    • ๐Ÿ—„ A region definition object literal's selector key was deprecated due to redundacy in favor of the existing key el

    Misc

    • ๐Ÿ“š Many documentation fixes for v3
    • โœ‚ Removed shouldReplace logic from attachHtml so overriding no longer breaks replaceElement functionality
    • ๐Ÿ”ฆ Exposed View.normalizeUIString for external libraries
    • ๐Ÿ‘Œ Improvements were made for Views initialized with existing DOM elements