Linux学习笔记
当前位置:Linux学习笔记 > Linux 新闻 > 正文

AngularJS 1.4.9 发布,HTML 的 Web 框架

bbs.yuanmawu.net.jpg

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:

    • 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 optgroup elements with value === ''(85e392f3,#13487, #13489)

    • don't $dirty multiple select after compilation
      (f163c905,#13211, #13326)

  • select: re-define ngModelCtrl.$render in the select directive'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 areAnimationsAllowed check
    (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

未经允许不得转载:Linux学习笔记 » AngularJS 1.4.9 发布,HTML 的 Web 框架

赞 (0)
分享到:更多 ()