perf(ngRepeat): use no-proto objects for blockMaps

This commit is contained in:
Igor Minar
2014-08-10 06:14:16 -07:00
parent 215d9545dc
commit 13d113c522
3 changed files with 33 additions and 26 deletions

View File

@@ -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>' +