jsantell / dancer.js

high-level audio API, designed to make sweet visualizations
jsantell.github.com/dancer.js
MIT License
2.11k stars 211 forks source link

getProgress, fix JSHint error, update version number, update build #20

Closed gr0uch closed 11 years ago

gr0uch commented 11 years ago

Implemented a getProgress() method that returns the loading progress as a float from 0 to 1.

JSHint complains about defining a function within a for loop, I corrected it.

jsantell commented 11 years ago

Looks like on cached loading, the progress event is never fired, leaving the progress property as undefined.. also will need to see the best way to add tests for this.. thanks!

gr0uch commented 11 years ago

Oops, will probably need to initialize the progress variable to 0 so that it's never undefined.

jsantell commented 11 years ago

Nice! :metal: Will scope this out later -- if you can think of any good ways to run specs for this, I'm all ears.

Cheers!