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)
}

View file

@ -19,7 +19,7 @@ class WidgetManager extends EventEmitter {
this.preArgsSeparator = '||||'
this.on('change', this.onChange.bind(this))
this.on('value-changed', this.onChange.bind(this))
ipc.on('connect', ()=>{
for (var hash in this.widgets) {
@ -222,7 +222,7 @@ class WidgetManager extends EventEmitter {
this.off()
this.on('change', this.onChange.bind(this))
this.on('value-changed', this.onChange.bind(this))
}