JavaScript MVC 框架,Mithril.js 0.1.32 發布

wdfd 9年前發布 | 8K 次閱讀 Mithril.js

Mithril.js 是一個客戶端的 JavaScript MVC 框架。可將應用分成數據層、UI層和控制層。Mithril 壓縮后只有 3kb 左右。API 提供一個模板引擎,帶 DOM diff 實現,支持路由和組合。

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


JavaScript MVC 框架,Mithril.js 0.1.32 發布

來自:http://www.oschina.net/news/60946/mithril-0-1-32

 本文由用戶 wdfd 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!