Skip to content

Commit

Permalink
Adds eleventyConfig.once method
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Aug 30, 2024
1 parent 03d1cfd commit 7a96035
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/UserConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ class UserConfig {
return this.events.on(eventName, callback);
}

once(eventName, callback) {
return this.events.once(eventName, callback);
}

emit(eventName, ...args) {
return this.events.emit(eventName, ...args);
}
Expand Down

0 comments on commit 7a96035

Please sign in to comment.