Commit 402752c
Murillo Ivamoto
Executes $apply() only if doesn't have another in execution (blur)
Some components, like datepickers or combo boxes or autocompletes,
has $apply() in her codes to "apply" something. Like this, sometimes
"angular-validation" needs apply something too.
When "angular-validation" applies something to some component and
that component executes $apply() before the validation, an error is
displayed in console: "$apply already in progress".
To correct this, just verify if $apply() is in progress.
If it isn't in progress execute him. If it is in progress,
doesn't execute him.1 parent 6163422 commit 402752c
3 files changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
800 | 805 | | |
801 | | - | |
| 806 | + | |
802 | 807 | | |
803 | 808 | | |
804 | 809 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
422 | 427 | | |
423 | | - | |
| 428 | + | |
424 | 429 | | |
425 | 430 | | |
426 | 431 | | |
| |||
0 commit comments