CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 01:48:05 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/dojo/widget-core.git
etag: W/"dd8f930a89f0301b34947ea3bf6fb4d6"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=SgrE4Ufb9Qk0YdENTlUXtbKTzaLXxvYofLK2kPo7zghqEw%2BzaM2LEkYpHFBj5vaPIkUZnZfJTi9xRMyTdjYID313PLtJaSK0ATk64LHM%2FMGxkmQfUE%2F%2FgsB4DMlS9o8OqRU%2FtYOXEdjSZq0DGSS%2FER%2BF5gDpI5HxXhRASEQ3LgV6iWlVRER67n4DjTENcg3Ejmn0K1B%2BUrRNXcWEKnJLaFAaUcYsNq64tLSmfqxCHDYNvQ8QsFWyQQHR%2BRa4eUv01FdLPZnhrHbdm%2F%2BC4ci58Q%3D%3D--NsgpEqeezH5Af76X--X5PR%2BSG6hK%2BZWJXyfRdCxA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1798381452.1753840085; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 01:48:05 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 01:48:05 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D426:1A4ED6:17E661:23BF97:688979D4
Add `onAttach` and `onDetach` lifecycle hooks (#771) · dojo/widget-core@ffc2cdc · GitHub
Skip to content
Navigation Menu
{{ message }}
This repository was archived by the owner on Jul 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit ffc2cdc
authored
* Add onAttach and onDetach widget hooks
* add readme for onAttach and onDetach
* Enhance tests and call detach outside of nodeToRemove
* no longer need parent instance
* add w() child to v() for destroy test
* readme updates
* readme updates
* Improve unit test
1 parent b93a4a8 commit ffc2cdcCopy full SHA for ffc2cdc
File tree
Expand file treeCollapse file tree
4 files changed
+233
-5
lines changedFilter options
- src
- tests/unit
Expand file treeCollapse file tree
4 files changed
+233
-5
lines changed+31-2Lines changed: 31 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
| 31 | + | |
| 32 | + | |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
| |||
708 | 709 |
| |
709 | 710 |
| |
710 | 711 |
| |
711 |
| - | |
| 712 | + | |
712 | 713 |
| |
713 | 714 |
| |
714 | 715 |
| |
| |||
772 | 773 |
| |
773 | 774 |
| |
774 | 775 |
| |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
775 | 804 |
| |
776 | 805 |
| |
777 | 806 |
| |
|
+14Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
125 | 131 |
| |
126 | 132 |
| |
127 | 133 |
| |
| |||
169 | 175 |
| |
170 | 176 |
| |
171 | 177 |
| |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
172 | 186 |
| |
173 | 187 |
| |
174 | 188 |
| |
|
+44-2Lines changed: 44 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
| 77 | + | |
| 78 | + | |
77 | 79 |
| |
78 | 80 |
| |
79 | 81 |
| |
| |||
467 | 469 |
| |
468 | 470 |
| |
469 | 471 |
| |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
470 | 489 |
| |
471 | 490 |
| |
472 | 491 |
| |
| |||
569 | 588 |
| |
570 | 589 |
| |
571 | 590 |
| |
572 |
| - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
573 | 596 |
| |
574 | 597 |
| |
575 | 598 |
| |
| |||
599 | 622 |
| |
600 | 623 |
| |
601 | 624 |
| |
602 |
| - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
603 | 630 |
| |
604 | 631 |
| |
605 | 632 |
| |
| |||
697 | 724 |
| |
698 | 725 |
| |
699 | 726 |
| |
| 727 | + | |
| 728 | + | |
| 729 | + | |
700 | 730 |
| |
701 | 731 |
| |
702 | 732 |
| |
| |||
906 | 936 |
| |
907 | 937 |
| |
908 | 938 |
| |
| 939 | + | |
| 940 | + | |
| 941 | + | |
909 | 942 |
| |
910 | 943 |
| |
911 | 944 |
| |
| |||
917 | 950 |
| |
918 | 951 |
| |
919 | 952 |
| |
| 953 | + | |
| 954 | + | |
| 955 | + | |
920 | 956 |
| |
921 | 957 |
| |
922 | 958 |
| |
| |||
934 | 970 |
| |
935 | 971 |
| |
936 | 972 |
| |
| 973 | + | |
| 974 | + | |
| 975 | + | |
937 | 976 |
| |
938 | 977 |
| |
939 | 978 |
| |
| |||
948 | 987 |
| |
949 | 988 |
| |
950 | 989 |
| |
| 990 | + | |
| 991 | + | |
| 992 | + | |
951 | 993 |
| |
952 | 994 |
| |
953 | 995 |
| |
|
+144-1Lines changed: 144 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 |
| |
25 | 27 |
| |
26 | 28 |
| |
| |||
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
60 | 66 |
| |
61 | 67 |
| |
62 | 68 |
| |
| |||
777 | 783 |
| |
778 | 784 |
| |
779 | 785 |
| |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
780 | 923 |
| |
781 | 924 |
| |
782 | 925 |
| |
|
You can’t perform that action at this time.
0 commit comments