Skip to content

Commit

Permalink
document jaws.assets.displayProgress
Browse files Browse the repository at this point in the history
  • Loading branch information
ippa committed Mar 5, 2013
1 parent 2a3b9bb commit 52789fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@ jaws.Assets = function Assets() {
that.onfinish = null
}
}

/*
* This is called when assets are loaded, for example by using jaws.start().
* It's called once per finished asset with a single argument, percect (0-100) of the total assets finished.
*
* If you want to paint your own loading screen:
* jaws.assets.displayProgress = function(percent_done) { /* your elite code */ }
*/
this.displayProgress = function(percent_done) {
if(!jaws.context) return;

Expand Down

0 comments on commit 52789fb

Please sign in to comment.