default callback for custom editor events added

This commit is contained in:
Chrissi2812 2019-06-03 12:16:07 +02:00
parent 3246b84229
commit 525619ad26
No known key found for this signature in database
GPG Key ID: B4B82C7E618271DA

View File

@ -82,7 +82,7 @@ export default class Editor extends Emitter {
} }
this.events.forEach(name => { this.events.forEach(name => {
this.on(name, this.options[camelCase(`on ${name}`)]) this.on(name, this.options[camelCase(`on ${name}`)] || (() => {}))
}) })
this.emit('init', { this.emit('init', {