Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 832b383

Browse files
jbedardgkalpak
authored andcommitted
perf($compile): use createMap() for directive bindings to allow fast forEach
Closes #12529
1 parent c4bff29 commit 832b383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
782782
function parseIsolateBindings(scope, directiveName, isController) {
783783
var LOCAL_REGEXP = /^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/;
784784

785-
var bindings = {};
785+
var bindings = createMap();
786786

787787
forEach(scope, function(definition, scopeName) {
788788
if (definition in bindingCache) {

0 commit comments

Comments
 (0)