perf($compile): use createMap() for directive bindings to allow fast forEach
Closes #12529
This commit is contained in:
committed by
Georgios Kalpakas
parent
709dc1cf0e
commit
fe1127a322
+1
-1
@@ -873,7 +873,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
|
||||
function parseIsolateBindings(scope, directiveName, isController) {
|
||||
var LOCAL_REGEXP = /^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/;
|
||||
|
||||
var bindings = {};
|
||||
var bindings = createMap();
|
||||
|
||||
forEach(scope, function(definition, scopeName) {
|
||||
if (definition in bindingCache) {
|
||||
|
||||
Reference in New Issue
Block a user