Marionette v3.2.0 发布了,Backbone.Marionette 是 Backbone.js 的一个组合应用库,简化了大规模 JavaScript 应用的开发。包含一组常用的设计模式。
本次更新如下:
特性
Separate Mn DOM interaction into a mixin for DOM plugin ease
View.childViewEvents should support trigger
Allow showing a template or static string in a region
Feature/trigger method event args
修复
Custom CollectionView.viewComparator no longer sorts collection.models
CollectionView re-indexes correctly when removing views.
CollectionView.filter can filter by View child index
Region will no longer detach pre-existing HTML when View's el is already in the region
Fix Region clean up when View is destroyed
Destroy CollectionView.children by View and not Model
其他
Remove MarionetteError "ViewDestroyError" from View's
软件详情:https://github.com/marionettejs/backbone.marionette/releases/tag/v3.2.0
下载地址:https://github.com/marionettejs/backbone.marionette/archive/v3.2.0.zip
来自:开源中国社区