You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Yes, E.on('init'...) is handy if you're copying and pasting code or writing libraries because if you do it twice, both bits of code get run. If you're actually fiddling with code using the left-hand side of the IDE then onInit can be easier - or you can do what I'd suggested above as well.

About

Avatar for Gordon @Gordon started