Closed gr0uch closed 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!
Oops, will probably need to initialize the progress
variable to 0
so that it's never undefined.
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!
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.