This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Commit b431ee3
committed
fix($compile): fix replaceWith
the old implementation didn't reattach jquery/jqlite data which caused
things like to be lost
I tried various implementations but it appears that by reattaching the data
to the new node by copying the expando property is the most reliable of all.1 parent a44d3dc commit b431ee3
2 files changed
Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
870 | | - | |
871 | | - | |
| 870 | + | |
872 | 871 | | |
873 | 872 | | |
874 | 873 | | |
875 | 874 | | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
| 875 | + | |
886 | 876 | | |
887 | 877 | | |
888 | 878 | | |
| |||
992 | 982 | | |
993 | 983 | | |
994 | 984 | | |
| 985 | + | |
995 | 986 | | |
996 | 987 | | |
997 | 988 | | |
| 989 | + | |
998 | 990 | | |
999 | 991 | | |
1000 | 992 | | |
| 993 | + | |
| 994 | + | |
1001 | 995 | | |
1002 | 996 | | |
1003 | 997 | | |
| |||
0 commit comments