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

Commit fe1127a

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

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
@@ -873,7 +873,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
873873
function parseIsolateBindings(scope, directiveName, isController) {
874874
var LOCAL_REGEXP = /^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/;
875875

876-
var bindings = {};
876+
var bindings = createMap();
877877

878878
forEach(scope, function(definition, scopeName) {
879879
if (definition in bindingCache) {

0 commit comments

Comments
 (0)