Quantcast
Channel: OSCHINA 社区最新新闻
Viewing all articles
Browse latest Browse all 60419

Marionette 3.0.0-pre.5 发布,Backbone.js 组合框架

$
0
0

Marionette 3.0.0-pre.5 发布了,Backbone.Marionette 是 Backbone.js 的一个组合应用库,简化了大规模 JavaScript 应用的开发。包含一组常用的设计模式。

更新内容:

文档:

  • 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.

下载地址:


Viewing all articles
Browse latest Browse all 60419

Latest Images

Trending Articles