发布于 2017-08-06 00:32:27 | 103 次阅读 | 评论: 0 | 来源: 网友投递
Marionette Backbone.js 组合框架
Backbone.Marionette 是 Backbone.js 的一个组合应用库,简化了大规模 JavaScript 应用的开发。包含一组常用的设计模式。
Marionette v3.4.0 发布了,
v3.4.0 查看提交日志
特性
A new build of Marionette supporting ES6 modules was added
Added DOM API to encapsulate DOM interactions in the views and region
monitorViewEvents
was added as an option to all Views to disable DOM lifecycle events
Added swapChildViews
to NextCollectionView
Added viewComparator: false
option to NextCollectionView
for disabling the default sort
实验性 API 的重大变更
DOM Mixin was removed (replaced with DOM API)
NextCollectionView
attachHtml
no longer receives the view as the first argument
修复
A region's currentView will now be set during that view's initial dom:refresh
event
A view will now be considered rendered if its el
has contents and not only if it has an el
Misc
While Backbone.Radio
is still a dependency, it will no longer cause Marionette to error if nonexistent
Various performance improvements
下载地址