Skip to content

Commit

Permalink
fix: update $x logic to avoid plugin error (iamkun#2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
gee1k authored Sep 19, 2023
1 parent 4f45012 commit 2254635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ class Dayjs {
constructor(cfg) {
this.$L = parseLocale(cfg.locale, null, true)
this.parse(cfg) // for plugin
this.$x = this.$x || cfg.x || {}
this[IS_DAYJS] = true
}

parse(cfg) {
this.$d = parseDate(cfg)
this.$x = cfg.x || {}
this.init()
}

Expand Down

0 comments on commit 2254635

Please sign in to comment.