Skip to content

Commit 2dee5c3

Browse files
author
Nathan Bolton
committed
Merge: Cover exception by undefined _progressListener rpgtkoolmv#203
rpgtkoolmv#203
1 parent f831133 commit 2dee5c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/rpg_core/ProgressWatcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ ProgressWatcher._bitmapListener = function(bitmap){
1212
this._countLoading++;
1313
bitmap.addLoadListener(function(){
1414
this._countLoaded++;
15-
this._progressListener(this._countLoaded, this._countLoading);
15+
this._progressListener && this._progressListener(this._countLoaded, this._countLoading);
1616
}.bind(this));
1717
};
1818

1919
ProgressWatcher._audioListener = function(audio){
2020
this._countLoading++;
2121
audio.addLoadListener(function(){
2222
this._countLoaded++;
23-
this._progressListener(this._countLoaded, this._countLoading);
23+
this._progressListener && this._progressListener(this._countLoaded, this._countLoading);
2424
}.bind(this));
2525
};
2626

0 commit comments

Comments
 (0)