Ember.js 1.10.0/1.11 Beta 发布

oschina
 oschina
发布于 2015年02月09日
收藏 17

Ember是一个雄心勃勃的Web应用程序,消除了样板,并提供了一个标准的应用程序架构的JavaScript框架。

Ember.js 1.10.0/1.11 Beta 发布,Ember.js 1.10 版本包括至少 50 位贡献者,超过 553 个 commits。

Ember.js 1.10.0 最值得关注的是引入了 HTMLBars 模板引擎,其他新特性如下:HTMLBars 0.8.5;性能提升;Chained Else Blocks;Block Params;注入属性(使用两个 API 来管理依赖注入)。同时还有一些值得关注的废弃特性:

  • The explicit {{bind}} helper has been deprecated. This helper has long been marked private, and was a legacy Sproutcore feature. This helper will be removed in Ember 1.11.

  • Quote-less outlet names are deprecated in 1.10. An example of this is{{outlet modal}}, which should be re-written as {{outlet "modal"}}. This ensures the outlet helper is consistent with others, where unquoted words are values and not string literals.

  • The beforeObserver feature is deprecated in Ember 1.10. Before observers are rarely used, but introduce significant overhead to the observer system in general. For observer use that requires the previous value of a property be known, implementing a cache is simple and more efficient. Read more about how to do this in the deprecation guide.

  • Observing the childViews array of a ContainerView is deprecated.

  • Setting the childViews property on a view definition is deprecated in 1.10.

Ember.js 1.11 beta 值得关注的特性有:绑定属性语法;Named Substates;Component Helper;还有一些值得关注的废弃特性:

  • The ObjectController will be removed in Ember 2.0. In Ember 1.11, both explicitly using an ObjectController and using the proxying behavior of a generated ObjectController will raise deprecation warnings.

更新日志:

更多内容请看发行说明

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 OSCHINA 社区 [http://www.oschina.net]
本文标题:Ember.js 1.10.0/1.11 Beta 发布
加载中

最新评论(1

码农不会耕田
码农不会耕田
这个东西是个神器
返回顶部
顶部