Skip to content

Commit 3371f9f

Browse files
committed
Added Game.debug reset method for when the debug manager is disabled (thanks @DanielSitarz phaserjs#1407)
1 parent 1227232 commit 3371f9f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Version 2.2.1 - "Danabar" - in dev
8484
### Bug Fixes
8585

8686
* Fixed TweenManager.isTweening() and .removeFrom() (thanks @jotson #1408)
87+
* Added Game.debug reset method for when the debug manager is disabled (thanks @DanielSitarz #1407)
8788

8889
For details about changes made in previous versions of Phaser see the full Change Log at https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md
8990

src/core/Game.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ Phaser.Game.prototype = {
537537
}
538538
else
539539
{
540-
this.debug = { preUpdate: function () {}, update: function () {} };
540+
this.debug = { preUpdate: function () {}, update: function () {}, reset: function () {} };
541541
}
542542

543543
this.showDebugHeader();

0 commit comments

Comments
 (0)