JavaScript 的 Web 框架,AngularJS 1.4.9 發布

jopen 8年前發布 | 10K 次閱讀

AngularJS是Google開發的純客戶端JavaScript技術的WEB框架,用于擴展、增強HTML功能,它專為構建強大的WEB應用而設計。
AngularJS 1.4.9 發布,HTML 的 Web 框架

AngularJS 1.4.9 發布,更新如下:

Bug 修復

  • Animation

  • $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)

  • </ul>

    小特性

    性能改進

    • 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.

    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





    來自: http://www.oschina.net//news/70104/angularjs-1-4-9

     本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
     轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
     本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!