Repository navigation
Commit ba4963e
* Run js functions in event listeners even when fn is not explicitly set to None
Fixes #6729. Event listeners (and gr.on) default fn to the "decorator"
sentinel, so calls like btn.click(js=js) silently registered nothing
unless fn=None was passed explicitly. When fn is the sentinel and js is
a string, register the event immediately with fn=None; if the returned
Dependency is then used as a decorator, remove the js-only event and
register the decorated function instead.
Co-Authored-By: Claude Fable 5 <[email protected]>
* Forward api_description, time_limit, stream_every in decorator wrappers
The decorator re-registration paths silently dropped api_description,
time_limit, and stream_every (event_trigger wrapper) and
api_description (gr.on wrapper). Pre-existing gap surfaced by review.
Co-Authored-By: Claude Fable 5 <[email protected]>
---------
Co-authored-by: Claude Fable 5 <[email protected]>
1 parent df59064 commit ba4963e
3 files changed
Lines changed: 159 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
674 | 714 | | |
675 | 715 | | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
676 | 721 | | |
677 | 722 | | |
678 | 723 | | |
679 | 724 | | |
680 | 725 | | |
681 | 726 | | |
| 727 | + | |
682 | 728 | | |
683 | 729 | | |
684 | 730 | | |
| |||
693 | 739 | | |
694 | 740 | | |
695 | 741 | | |
| 742 | + | |
| 743 | + | |
696 | 744 | | |
697 | 745 | | |
698 | 746 | | |
| |||
703 | 751 | | |
704 | 752 | | |
705 | 753 | | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
706 | 757 | | |
707 | 758 | | |
708 | 759 | | |
| |||
872 | 923 | | |
873 | 924 | | |
874 | 925 | | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
875 | 966 | | |
876 | 967 | | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
877 | 973 | | |
878 | 974 | | |
879 | 975 | | |
880 | 976 | | |
881 | 977 | | |
882 | 978 | | |
| 979 | + | |
883 | 980 | | |
884 | 981 | | |
885 | 982 | | |
| |||
906 | 1003 | | |
907 | 1004 | | |
908 | 1005 | | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
909 | 1009 | | |
910 | 1010 | | |
911 | 1011 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
119 | 173 | | |
120 | 174 | | |
121 | 175 | | |
| |||
0 commit comments