You are reading a single comment by @mgg1010 and its replies. Click here to read the full conversation.
  • Hi

    I've tried to write a clock module, but it needs to do an internal setInterval to call an internal function. I tried to setInterval(this.tick,1000) but it fails.

    I think I found some example code - this defines the function to be called by setInterval in the exported init function - which I think means it will be cloned every time the class is used - which wastes memory a bit.

    Is there any way to have a module function that is called by setInterval...?

    Thanks

    Martin

About

Avatar for mgg1010 @mgg1010 started