Skip to content

Commit 5b371db

Browse files
Added onBlur method docs
1 parent 18cd227 commit 5b371db

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,13 @@ var HTML5AudioSound = new Class({
264264
reset: function () {
265265
BaseSound.prototype.stop.call(this);
266266
},
267+
/**
268+
* Method used internally by sound manager for pausing sound if
269+
* Phaser.Sound.HTML5AudioSoundManager#pauseOnBlur is set to true.
270+
*
271+
* @private
272+
* @method Phaser.Sound.HTML5AudioSoundManager#onBlur
273+
*/
267274
onBlur: function () {
268275
this.isPlaying = false;
269276
this.isPaused = true;

0 commit comments

Comments
 (0)