红联Linux门户
Linux帮助

Mithril.js 0.1.32发布,JavaScript MVC框架

发布时间:2015-03-28 09:11:09来源:红联作者:empast
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 实现,支持路由和组合。

来自:开源中国社区
文章评论

共有 0 条评论