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.timeStamp anymore 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 undefined expressions
(7bb2414b) $resource: don't allow using promises as timeout and log a warning
(47486524) formatNumber: cope with large and small number corner cases
(9c49eb13,#13394, #8674, #12709, #8705, #12707, #10246, #10252) input: isArrayLike: recognize empty instances of an Array subclass
(323f9ab7,#13560, #13708) ngInclude: do not compile template if original scope is destroyed
(9590bcf0) ngOptions: select: re-define ngModelCtrl.$render in the select directive's postLink function
(529b2507,#13583, #13583, #13663)
小特性性能改进重大更新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. Possible breaking change for users who updated their code to provide a timeout promise 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 |