转载

Mithril.js 0.1.32 发布,JavaScript MVC 框架

阿里百川,开启移动应用开发的新篇章

Mithril.js 0.1.32 发布,现已提供下载: https://github.com/lhorie/mithril.js/archive/v0.1.32.zip 。

官方尚未有发行说明,同一天还发布了 Mithril.js 0.1.31 版本,更新内容如下:

新特性

  • Typescript definitions are more strongly typed

  • m.request's unwrapSuccess and unwrapError callbacks now receive the XMLHttpRequest instance as a second parameter

  • 3rd parameter for m.route(route, params, shouldReplaceHistory) is now public

  • exact routes now have higher precedence than routes w/ variables #452

  • there's now a retain flag to control on-route-change diff strategy on a per-element basis

Bug 修复

  • fix routing bug in IE9 #320

  • fix ordering bug in m.trust when using HTML entities #453

  • set promise's default value to initialValue if coming from m.request #454

  • fix dom element ownership bug when mixing keyed elements and third party plugin elements #463

  • fix edge case in flatten algorithm #448

  • prevent unnecessary DOM move operation when mixing keyed and unkeyed elements #398

  • revert #382 due to diff regression #512

Mithril.js 是一个客户端的 JavaScript MVC 框架。可将应用分成数据层、UI层和控制层。Mithril 压缩后只有 3kb 左右。API 提供一个模板引擎,带 DOM diff 实现,支持路由和组合。

Mithril.js 0.1.32 发布,JavaScript MVC 框架

正文到此结束
Loading...