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

Commit f2e1bd6

Browse files
committed
fixup! perf(input): prevent multiple validations on compilation
1 parent 0d826b8 commit f2e1bd6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/ng/directive/ngModel.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ NgModelController.prototype = {
565565

566566
// ignore $validate before model is initialized
567567
if (isNumberNaN(this.$modelValue)) {
568-
// console.log('dont validate yet');
569568
return;
570569
}
571570

@@ -1052,7 +1051,6 @@ NgModelController.prototype = {
10521051
* This method is called internally when the bound scope value changes.
10531052
*/
10541053
$$setModelValue: function(modelValue) {
1055-
// console.log('$$setModelValue', modelValue);
10561054
this.$modelValue = this.$$rawModelValue = modelValue;
10571055
this.$$parserValid = undefined;
10581056
this.$processModelValue();
@@ -1084,7 +1082,6 @@ function setupModelWatcher(ctrl) {
10841082
// ng-change executes in apply phase
10851083
// 4. view should be changed back to 'a'
10861084
ctrl.$$scope.$watch(function ngModelWatch(scope) {
1087-
// console.log('ngModelWatch exp');
10881085
var modelValue = ctrl.$$ngModelGet(scope);
10891086

10901087
// if scope model value and ngModel value are out of sync

0 commit comments

Comments
 (0)