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

Commit 1c2ac54

Browse files
author
Kent C. Dodds
committed
perf(expressionProperties): 🌟 Don't fire digest for every runExpressions call
Because we're using to assign the value, this will run in which means only one digest for all the that are running 😀 closes #406
1 parent e95294b commit 1c2ac54

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/directives/formly-field.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function formlyField($http, $q, $compile, $templateCache, $interpolate, formlyCo
6969
setter(field, value);
7070
});
7171
});
72-
});
72+
}, 0, false);
7373
}
7474

7575
function valueGetterSetter(newVal) {
@@ -168,7 +168,6 @@ function formlyField($http, $q, $compile, $templateCache, $interpolate, formlyCo
168168
}
169169

170170
formControl.$render();
171-
// REMOVE UNDEFINED CHECK WHEN DROPPING ANGULAR 1.2 SUPPORT
172171
formControl.$setUntouched && formControl.$setUntouched();
173172
formControl.$setPristine();
174173

0 commit comments

Comments
 (0)