AngularJS 1.4.9 发布下载,更新如下:
Bug 修复
- Animation
- ensure that animate promises resolve when the document is hidden (9a60408c)
- do not trigger animations if the document is hidden (09f6061a,#12842, #13776)
- only copy over the animation options once (2fc954d3,#13722, #13578)
- allow event listeners on document in IE (5ba4419e,#13548, #13696)
- allow removing classes that are added by a running animation (6c4581fc,#13339, #13380, #13414, #13472, #13678)
- do not use
event.timeStampanymore for time tracking (620a20d1,#13494, #13495) - ignore children without animation data when closing them (be01cebf,#11992, #13424)
- do not alter the provided options data (7a81e6fe,#13040, #13175)
- correctly handle
$animate.pin()host elements (a985adfd,#13783) - allow animations when pinned element is parent element (4cb8ac61,#13466)
- allow enabled children to animate on disabled parents (6d85f24e,#13179, #13695)
- correctly access
minErr(0c1b54f0) - ensure animate runner is the same with and without animations (937942f5,#13205, #13347)
- remove animation end event listeners on close (d9157849,#13672)
- consider options.delay value for closing timeout (592bf516,#13355, #13363)
- $controller: allow identifiers containing
$(2563ff7b,#13736) - $http: throw if url passed is not a string (c5bf9dae,#12925, #13444)
- $parse: handle interceptors with
undefinedexpressions (7bb2414b) - $resource: don't allow using promises as
timeoutand log a warning (47486524) - formatNumber: cope with large and small number corner cases (9c49eb13,#13394, #8674, #12709, #8705, #12707, #10246, #10252)
- input:
- fix URL validation being too strict (6610ae81,#13528, #13544)
- add missing chars to URL validation regex (2995b54a,#13379, #13460)
- isArrayLike: recognize empty instances of an Array subclass (323f9ab7,#13560, #13708)
- ngInclude: do not compile template if original scope is destroyed (9590bcf0)
- ngOptions:
- don't skip
optgroupelements withvalue === ''(85e392f3,#13487, #13489) - don't
$dirtymultiple select after compilation (f163c905,#13211, #13326) - select: re-define
ngModelCtrl.$renderin theselectdirective's postLink function (529b2507,#13583, #13583, #13663)
小特性
-
ngLocale: add support for standalone months (54c4041e,#3744, #10247, #12642, #12844)
-
ngMock: add support for
$animate.closeAndFlush()(512c0811)
性能改进
-
ngAnimate: speed up
areAnimationsAllowedcheck (2d3303dd)
重大更新
While we do not deem the following to be a real breaking change we are highlighting it here in the changelog to ensure that it does not surprise anyone.
-
$resource: due to 47486524,
Possible breaking change for users who updated their code to provide a timeoutpromise for a $resource request in version 1.4.8.
Up to v1.4.7 (included), using a promise as a timeout in $resource, would silently fail (i.e. have no effect).
In v1.4.8, using a promise as timeout would have the (buggy) behaviour described in https://github.com/angular/angular.js/pull/12657#issuecomment-152108887(i.e. it will work as expected for the first time you resolve the promise and will cancel all subsequent requests after that - one has to re-create the resource class. This is feature was not documented.)
With this change, using a promise as timeout in 1.4.9 onwsards is not allowed. It will log a warning and ignore the timeout value.
If you need support for cancellable $resource actions, you should upgrade to version 1.5 or higher.
更多内容请看:CHANGELOG.md
下载地址:1.4.9
一些AngularJS相关文章链接:
AngularJS权威教程 清晰PDF版 http://www.linuxidc.com/Linux/2015-01/111429.htm
希望你喜欢,并分享我的工作~带你走近AngularJS系列:
- 带你走近AngularJS - 基本功能介绍 http://www.linuxidc.com/Linux/2014-05/102140.htm
- 带你走近AngularJS - 体验指令实例 http://www.linuxidc.com/Linux/2014-05/102141.htm
- 带你走近AngularJS - 创建自定义指令 http://www.linuxidc.com/Linux/2014-05/102142.htm
如何在 AngularJS 中对控制器进行单元测试 http://www.linuxidc.com/Linux/2013-12/94166.htm
在 AngularJS 应用中通过 JSON 文件来设置状态 http://www.linuxidc.com/Linux/2014-07/104083.htm
AngularJS 之 Factory vs Service vs Provider http://www.linuxidc.com/Linux/2014-05/101475.htm
AngularJS —— 使用 ngResource、RESTful APIs 和 Spring MVC 框架提交数据 http://www.linuxidc.com/Linux/2014-07/104402.htm
AngularJS 的详细介绍:请点这里
AngularJS 的下载地址:请点这里
本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-01/127708.htm
