Unable to create multiple instances of Radio #10

Closed
andrewjmead opened this Issue Mar 5, 2014 · 1 comment

2 participants

@andrewjmead

I would like to have multiple instances running is a single environment. There does not seems to be any support for this (via new keyword or any other way).

@uxder
Owner

That is because Radio is meant to be an object (rather than an instance) that occupies the window.radio namespace and is by design. You could consider it a singleton although there isn't a constructor per say.

If you want multiple radios, I suggest you just clone the radio object.

http://stackoverflow.com/questions/728360/most-elegant-way-to-clone-a-javascript-object

@uxder uxder closed this Mar 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment