events: missing renames
This commit is contained in:
parent
1930f5465c
commit
1bda72cd12
2 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue