mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
perf(ngRepeat): use no-proto objects for blockMaps
This commit is contained in:
@@ -174,14 +174,6 @@ describe('ngRepeat', function() {
|
||||
});
|
||||
|
||||
|
||||
it("should throw an exception if 'track by' evaluates to 'hasOwnProperty'", function() {
|
||||
scope.items = {age:20};
|
||||
$compile('<div ng-repeat="(key, value) in items track by \'hasOwnProperty\'"></div>')(scope);
|
||||
scope.$digest();
|
||||
expect($exceptionHandler.errors.shift().message).toMatch(/ng:badname/);
|
||||
});
|
||||
|
||||
|
||||
it('should track using build in $id function', function() {
|
||||
element = $compile(
|
||||
'<ul>' +
|
||||
|
||||
Reference in New Issue
Block a user