Commit f2abe70
committed
fix: re-register dayjs plugins in start to prevent cross-module conflicts
Move dayjs plugin initialization into `start()` and re-extend all loaded
`dayjs_plugin_*` plugins after module scripts are loaded. This makes
CalendarExt2 resilient when another module overwrites the global dayjs
instance, and removes the now-redundant `lib/dayjs-init.js`.1 parent 3b2befd commit f2abe70
2 files changed
Lines changed: 8 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
| |||
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
284 | 290 | | |
285 | 291 | | |
286 | 292 | | |
| |||
This file was deleted.
0 commit comments