Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(rootTag) {
this.events = new Ultron(events); // Created a managed EventEmitter.
this.previous = this.discover(); // Name of the current mounted app.
this.rootTag = rootTag; // Reference to the rootTag
//
// Create our renderer reference so we
//
this.Renderer = createRenderer(this.manager.bind(this));
}
created() {
Object.defineProperty(this, '$obs', {
get: () => {
return this.$root.$refs.app.$obs
}
})
this._obs = new Ultron(this.$obs)
},
onPluginLoad = (instance, name) => {
const onChange = () => this.onChange(name, instance)
this.events.push(
new Ultron(instance)
.on('option', onChange)
.on('enable', onChange)
.on('disable', onChange)
)
debug('attached load handlers', name)
}
enable () {
this.events = new Ultron(this.bot)
this.events.on('djBooth:advance', this.onAdvance)
}
enable () {
const events = new Ultron(this.bot.plugins)
events.on('discovered', this.onPluginDiscovered)
events.on('load', this.onPluginLoad)
this.events.push(events)
}
constructor (bot, options) {
super(bot)
this.options = options
this.events = new Ultron(this.mp)
this.waitlist = new Waitlist(this)
this.djBooth = new DJBooth(this)
this.djHistory = new DJHistory(this)
}