Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perhaps doc is broken: this.events unknown #17

Closed
maxlapshin opened this issue Oct 18, 2018 · 1 comment
Closed

perhaps doc is broken: this.events unknown #17

maxlapshin opened this issue Oct 18, 2018 · 1 comment

Comments

@maxlapshin
Copy link

class Ticker {
  constructor() {
    this.emitter = new NanoEvents()
  }
  on() {
    return this.emitter.on.apply(this.events, arguments)
  }
  tick() {
    this.emitter.emit('tick')
  }
}

what is this.events?

This code breaks in my case with error looking like:

main.js:1 Uncaught TypeError: Cannot read property 'streaming' of undefined

where 'streaming' is my event

@ai
Copy link
Owner

ai commented Oct 19, 2018

Yeap. Fixed e3dd610

@ai ai closed this as completed Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants