设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

Ember 1.6.0/1.7 Beta发布,JavaScript框架

2014-7-9 15:50| 发布者: joejoe0332| 查看: 2024| 评论: 0|原作者: oschina|来自: oschina

摘要:   Ember 1.6.0 和 1.7 Beta 发布,这是第六个发布进程周期,上一个发布版本是 1.0 版本。Ember.js 1.6 新特性:Ember.computed.emptyTest Friendly PromisesEmber.Route.prototype.render Now has a model Option ...

  Ember 1.6.0 和 1.7 Beta 发布,这是第六个发布进程周期,上一个发布版本是 1.0 版本。


Ember.js 1.6 新特性:

  1. Ember.computed.empty

  2. Test Friendly Promises

  3. Ember.Route.prototype.render Now has a model Option


其他值得注意的改进:

  • Add better debugging for Resolver Lookup

  • Ensure context is unchanged when using keywords with itemController for {{each}} orcontroller for {{with}}.

  • Fix swallowed rejections in asynchronous route hooks (this may mean that errors that were previously completely swallowed are now surfaced in your application).

  • Ember.copy and Ember.isEqual now support Date objects.

  • Backburner and RSVP now use the Ember.onerror handler if present to log errors.

  • An error is now thrown when injecting a factory into all factories of the same type.


  Ember.js 1.7.0-beta1 包括一些 bug 修复和小的改进,更多内容请看详细的更新日志:


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


  示例代码:

MyApp.president = Ember.Object.create({
  firstName: "Barack",
  lastName: "Obama",

  fullName: function() {
    return this.get('firstName') + ' ' + this.get('lastName');

  // Tell Ember that this computed property depends on firstName
  // and lastName
  }.property('firstName', 'lastName')
});


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部