发布于 2016-08-08 00:26:53 | 115 次阅读 | 评论: 0 | 来源: 网友投递
Marionette Backbone.js 组合框架
Backbone.Marionette 是 Backbone.js 的一个组合应用库,简化了大规模 JavaScript 应用的开发。包含一组常用的设计模式。
Marionette 3.0.0-pre.5 发布了,
文档:
Improved installation docs.
Updated CollectionView
docs to reflect API changes.
Improved Behavior
docs.
Improved functions docs.
Improved update guide.
Added "basics" docs.
API 更新:
emptyView
now accepts a function as an arg.
Removed the apply:filter
event from CollectionView
.
removeChildView
now returns the removed view.
bindEntityEvents
renamed bindEvents
.
Deprecated Behavior Lookups.
Added Backbone.Babysitter to Mn and removed the Babysitter dependency.
Bug fixes
CollectionView
now only triggers destroy:children
if it has been rendered.
Parent views will now successfully listen for destroy
in childViewEvents
.
Misc
Replaced var
and let
with const
.
Added consistent function declarations and added rules to eslint.
Tweaked peerDependencies to only allow patch versions.
Directory structure changes and file naming consistency.
Improved test coverage.
Removed bundled build.