Commit 12c980b
committed
feat(core utils): debouncer - Add postpone option for callback to be run after all debounce calls or in between.
If "postpone" is set to "true" (the default and previous behavior) the
callback will only be called after no more debouncer calls are done for
the given timeout.
If "postpone" is set to "false" the callback will be run after the
timeout has passed and calls to "debouncer" in between are ignored.1 parent 14af661 commit 12c980b
2 files changed
+42
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
520 | 533 | | |
521 | 534 | | |
522 | 535 | | |
| |||
528 | 541 | | |
529 | 542 | | |
530 | 543 | | |
531 | | - | |
| 544 | + | |
532 | 545 | | |
533 | | - | |
534 | 546 | | |
535 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
536 | 555 | | |
537 | 556 | | |
538 | 557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
633 | 652 | | |
634 | 653 | | |
635 | 654 | | |
| |||
0 commit comments