Releases: marionettejs/backbone.marionette
Releases · marionettejs/backbone.marionette
v4.1.3
v4.1.2
v4.1.1
v4.1.0
v4.1.0 view commit logs
Features
CollectionView#addChildViewnow accepts apreventRenderoption.- Marionette now uses
el.ownerDocument.documentElement;by default instead ofdocument.documentElementfor querying, customizable viaDomApi.getDocumentEl. - The UMD build now reinstates
noConflictfor using multiple versions on the global scope.
Fixes
- Fixed a case where a child view could potentially get multiple
destroyevents. - Pre-rendered views from outside of a region will now correctly empty an current view in a region if shown.
CollectionView'semptyViewwill now respect thechildViewContainerfor attachment.
Misc
- Updated backbone dependency to allow for 1.4 without a warning.
- Tooling and testing was updated and improved removing gulp.
Region._setElementwas added for internal use, but may be made public in a future release.
v4.0.0
v4.0.0 view commit logs
Breaking Changes
The breaking changes are documented in the upgrade guide.
Features
CollectionViewcan now render a template in the same fashion of the removedCompositeView.View#triggersnow passes the originating DOM event object as the final argument of the triggered Mn event.- View classes now have the
bindRequestsandunbindRequestsAPI. - The ES6 package was exposed in
package.jsononjsnext:main - The underscore dependency was updated to include 1.8.3 - 1.9.x.
Documentation
The documentation structure was overhauled to provide a flow to reading through the docs.
v4 Beta Release
For v4 documentation:
https://github.com/marionettejs/backbone.marionette/blob/v4-beta/docs/installation.md
For the v3-v4 upgrade guide:
https://github.com/marionettejs/backbone.marionette/blob/v4-beta/docs/upgrade-v3-v4.md
v4 Alpha Release
For 4v documentation:
https://github.com/marionettejs/backbone.marionette/blob/v4-alpha/docs/installation.md
v3.5.1
Fixes
Viewentity events set ininitializewere being undelegated ifmodelEventsorcollectionEventswere undefined.
v3.5.0
Features
NextCollectionView'sfilterevent now returns the attaching and detached views.unbindEventsandunbindRequestscan now be called without handlers to remove all handlers from an entity.
Fixes
- If an event handler on a behavior was undefined it would remove any prior defined handler.
- When a behavior is destroyed it will now undelegate the behavior events and triggers.
- When a view was added a performance check on
NextCollectionViewwould sometimes prevent existing views from sorting correctly. NextCollectionViewviewFilterwill now be called with the same arguments with underscore or lodash.
Deprecations
- Multiple handlers for a single event. If needed, use a single handler to call multiple methods.
v3.4.4
Fixes
- Prevent exception when a view is instantiated with a non-existing selector
el. - When a collection defines the
NextCollectionViewsort order, the add at end performance improvement was removed to prevent edge case errors. NextCollectionViewno longer sorts according to the collection ifsortWithCollectionis set to false.- When views added to
NextCollectionViewfrom a collection don't have a matching model, removing the model no longer throws an error.
Misc
NextCollectionViewnow uses backbone update flags instead of calculating changes for sorting