-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
This library only supports one instance per page due to the way it is written with global library state. A more idiomatic approach would be to expose a constructor that makes a new MainLoop. For instance,
var mainLoop = new MainLoop(options);
mainLoop.setEnd(cb);
// You can easily make another one
var mainLoopTwo = new MainLoop(options);Given how well-organized the code is, I think it'd be relatively simple to refactor it to use this system instead.
If this is something you're interested in, let me know and I'd be happy to put together a PR for you to review.
Metadata
Metadata
Assignees
Labels
No labels