From 52789fb962c313adcd63fc66f463caa4a868753a Mon Sep 17 00:00:00 2001 From: ippa Date: Tue, 5 Mar 2013 11:52:31 +0100 Subject: [PATCH] document jaws.assets.displayProgress --- src/assets.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/assets.js b/src/assets.js index f57e4ef..80ee4a8 100755 --- a/src/assets.js +++ b/src/assets.js @@ -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;