We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f831133 commit 2dee5c3Copy full SHA for 2dee5c3
js/rpg_core/ProgressWatcher.js
@@ -12,15 +12,15 @@ ProgressWatcher._bitmapListener = function(bitmap){
12
this._countLoading++;
13
bitmap.addLoadListener(function(){
14
this._countLoaded++;
15
- this._progressListener(this._countLoaded, this._countLoading);
+ this._progressListener && this._progressListener(this._countLoaded, this._countLoading);
16
}.bind(this));
17
};
18
19
ProgressWatcher._audioListener = function(audio){
20
21
audio.addLoadListener(function(){
22
23
24
25
26
0 commit comments