perf($parse): use no-proto maps as caches and avoid hasOwnProperty checks

This commit is contained in:
Igor Minar
2014-08-10 07:46:27 -07:00
parent a09fa35641
commit d302ea0cfa
5 changed files with 21 additions and 29 deletions

View File

@@ -83,6 +83,7 @@
"assertNotHasOwnProperty": false,
"getter": false,
"getBlockElements": false,
"createMap": false,
"VALIDITY_STATE_PROPERTY": true,
/* AngularPublic.js */

View File

@@ -5,7 +5,7 @@ describe('parser', function() {
beforeEach(function() {
/* global getterFnCache: true */
// clear cache
getterFnCache = {};
getterFnCache = createMap();
});