Skip to content

Commit

Permalink
✨ Dispatch event on update
Browse files Browse the repository at this point in the history
  • Loading branch information
marcreichel committed Apr 4, 2024
1 parent 130c7db commit 215703a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions dist/alpine-timeago.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/alpine-timeago.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alpine-timeago.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alpine-timeago.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function TimeAgo(Alpine) {
locale,
});
}
el.dispatchEvent(new Event("timeago:update", { bubbles: false }));
} catch (e) {
console.error(e);
}
Expand Down

0 comments on commit 215703a

Please sign in to comment.