|
欢迎加入运维网交流群:263444886
AngularJS 1.4.8 发布,此版本代号为:ice-manipulation,主要改进:
Bug 修复
- $animate: ensure leave animation calls close callback(6bd6dbff,#12278, #12096, #13054)
$cacheFactory: check key exists before decreasing cache>
- $compile:
- bind all directive controllers correctly when using bindToController(5d8861fb,#11343, #11345)
- evaluate against the correct scope with bindToController on new scope(b9f7c453,#13021, #13025)
- fix scoping of transclusion directives inside replace directive(74da0340,#12975, #12936, #13244)
- $http: apply transformResponse even when data is empty(c6909464,#12976, #12979)
- $location: ensure $locationChangeSuccess fires even if URL ends with #(6f8ddb6d,#12175, #13251)
- $parse: evaluate once simple expressions only once(e4036824,#12983, #13002)
- $resource: allow XHR request to be cancelled via a timeout promise(7170f9d9,#12657, #12675, #10890, #9332)
- $rootScope: prevent IE9 memory leak when destroying scopes(87b0055c,#10706, #11786)
- Angular.js: fix isArrayLike for unusual cases(70edec94,#10186, #8000, #4855, #4751, #10272)
- isArrayLike: handle jQuery objects of length 0(d3da55c4)
- jqLite:
- deregister special mouseenter / mouseleave events correctly(22f66025,#12795, #12799)
- ensure mouseenter works with svg elements on IE(c1f34e8e,#10259, #10276)
- limitTo: start at 0 if begin is negative and exceeds input length(4fc40bc9,#12775, #12781)
- merge:
- ensure that jqlite->jqlite and DOM->DOM(2f8db1bf)
- clone elements instead of treating them like simple objects(838cf4be,#12286)
- ngAria: don't add tabindex to radio and checkbox inputs(59f1f4e1,#12492, #13095)
- ngInput: change URL_REGEXP to better match RFC3987(cb51116d,#11341, #11381)
- ngMock: reset cache before every test(91b7cd9b,#13013)
- ngOptions:
- skip comments and empty options when looking for options(0f58334b,#12190, #13029, #13033)
- override select option registration to allow compilation of empty option(7b2ecf42,#11685, #12972, #12968, #13012)
性能提升
- $compile: use static jquery data method to avoid creating new instances(55ad192e)
- copy:
- avoid regex in isTypedArray(19fab4a1)
- only validate/clear if the user specifies a destination(d1293540,#12068)
- merge: remove unnecessary wrapping of jqLite element(ce6a96b0,#13236)
下载:https://github.com/angular/angular.js/archive/v1.4.8.zip。 |
|