Skip to content

Commit aaee738

Browse files
Added onBlur method docs
1 parent 27179b6 commit aaee738

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ var HTML5AudioSoundManager = new Class({
155155
document.body.addEventListener('touchmove', detectMove, false);
156156
document.body.addEventListener('touchend', unlock, false);
157157
},
158+
/**
159+
* Method used internally for pausing sound manager if
160+
* Phaser.Sound.HTML5AudioSoundManager#pauseOnBlur is set to true.
161+
*
162+
* @protected
163+
* @method Phaser.Sound.HTML5AudioSoundManager#onBlur
164+
*/
158165
onBlur: function () {
159166
this.forEachActiveSound(function (sound) {
160167
if (sound.isPlaying) {

0 commit comments

Comments
 (0)