Added Game.debug reset method for when the debug manager is disabled (thanks @DanielSitarz #1407)

This commit is contained in:
photonstorm 2014-12-03 20:56:39 +00:00
parent 1227232fd6
commit 3371f9ff1e
2 changed files with 2 additions and 1 deletions

View file

@ -84,6 +84,7 @@ Version 2.2.1 - "Danabar" - in dev
### Bug Fixes
* Fixed TweenManager.isTweening() and .removeFrom() (thanks @jotson #1408)
* Added Game.debug reset method for when the debug manager is disabled (thanks @DanielSitarz #1407)
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

View file

@ -537,7 +537,7 @@ Phaser.Game.prototype = {
}
else
{
this.debug = { preUpdate: function () {}, update: function () {} };
this.debug = { preUpdate: function () {}, update: function () {}, reset: function () {} };
}
this.showDebugHeader();