AngularJS 今天 ”又“ 发布了两个新版本(咦,我为什么要说 ”又“ 呢?)
其中 1.3.9 是个小改版本,不过有性能提升哦:
Bug Fixes
$parse: allow use of locals in assignments (86900814)
filterFilter: use isArray() to determine array type (d4b60ada,#10621)
Features
ngMock/$exceptionHandler: log errors when rethrowing (2b97854b,#10540, #10564)
Performance Improvements
ngStyleDirective: use $watchCollection (4c8d8ad5,#10535)
而 AngularJS 1.4.0 Beta 0 虽然也修复了很多 Bug,但变化也不少:
Bug Fixes
$location: support right button click on anchors in firefox (aa798f12,#7984)
$templateRequest: propagate HTTP status on failed requests (e24f22bd,#10514, #10628)
dateFilter: ignore invalid dates (1334b8c8,#10640)
filterFilter: use isArray() to determine array type (a01ce6b8,#10621)
ngChecked: ensure that ngChecked doesn't interfere with ngModel (e079111b,#10662, #10664)
ngClass: handle multi-class definitions as an element of an array (e1132f53,#8578, #10651)
ngModelOptions: allow sharing options between multiple inputs (9c9c6b3f,#10667)
ngOptions:
support one-time binding on the option values (ba90261b,#10687, #10694)
prevent infinite digest if track by expression is stable (fc21db8a,#9464)
update model if selected option is removed (933591d6,#7736)
ensure that the correct option is selected when options are loaded async (7fda214c,#8019, #9714, #10639)
ngPluralize: generate a warning when using a not defined rule (c66b4b6a)
Features
$filter: display Infinity symbol when number is Infinity (51d67742,#10421)
$timeout: allow fn to be an optional parameter (5a603023,#9176)
limitTo: ignore limit when invalid (a3c3bf33,#10510)
ngMock/$exceptionHandler: log errors when rethrowing (deb3cb4d,#10540, #10564)
Performance Improvements
ngStyleDirective: use $watchCollection (8928d023,#10535)
Breaking Changes
limitTo: due to a3c3bf33, limitTo changed behavior when limit value is invalid. Instead of returning empty object/array it returns unchanged input.
ngOptions: due to 7fda214c,
来自:开源中国社区

