Khan / Prototope

Swift library of lightweight interfaces for prototyping, bridged to JS
http://khan.github.io/Prototope
230 stars 18 forks source link

Sounds that are playing should keep playing even if you stop referencing them #81

Closed andymatuschak closed 9 years ago

andymatuschak commented 9 years ago

I wanted to write JS code like:

new Sound({name: “foo”}).play()

But the garbage collector would occasionally collect the Sound and stop it from playing completely!

NachoSoto commented 9 years ago

Looks good! :tada: