events: missing renames

This commit is contained in:
jean-emmanuel 2022-01-28 16:30:15 +01:00
parent 1930f5465c
commit 1bda72cd12
2 changed files with 4 additions and 2 deletions

View file

@ -38,6 +38,8 @@ module.exports = class EventEmitter {
}
// Event bubbling
// DOM events won't buttle
// Virtual events will unless data.stopPropagation is set
if (!data || !data.stopPropagation) {
if (this.parent) this.parent.trigger(evt, data)
}