mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Added Events.onEnterBounds to the destroy method (thanks @legendary-mich #1497)
This commit is contained in:
parent
3f8c82405d
commit
b3f322469b
2 changed files with 3 additions and 1 deletions
|
@ -109,6 +109,8 @@ Android browser does not support Full Screen.
|
|||
* Time.reset would incorrectly reset the `_started` property, now maps it to `Time.time` (thanks @XekeDeath #1467)
|
||||
* Fix floating point inaccuracy in Tween easing edge cases (thanks @jounii #1492)
|
||||
* Simplified call to updateTransform - unified and verified fix for #1424 #1502
|
||||
* Phaser.Signal was causing a CSP script-src violations in Cordova and Google Chrome Apps (thanks @elennaro #1494)
|
||||
* Added Events.onEnterBounds to the destroy method (thanks @legendary-mich #1497)
|
||||
|
||||
### Pixi.js 2.2.0 Updates
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ Phaser.Events.prototype = {
|
|||
if (this._onRemovedFromWorld) { this._onRemovedFromWorld.dispose(); }
|
||||
if (this._onKilled) { this._onKilled.dispose(); }
|
||||
if (this._onRevived) { this._onRevived.dispose(); }
|
||||
if (this._onEnterBounds) { this._onEnterBounds.dispose(); }
|
||||
if (this._onOutOfBounds) { this._onOutOfBounds.dispose(); }
|
||||
|
||||
if (this._onInputOver) { this._onInputOver.dispose(); }
|
||||
|
@ -159,7 +160,6 @@ Phaser.Events.prototype.constructor = Phaser.Events;
|
|||
// and the dispatch method is the same as the event name postfixed with '$dispatch'.
|
||||
for (var prop in Phaser.Events.prototype)
|
||||
{
|
||||
|
||||
if (!Phaser.Events.prototype.hasOwnProperty(prop) ||
|
||||
prop.indexOf('on') !== 0 ||
|
||||
Phaser.Events.prototype[prop] !== null)
|
||||
|
|
Loading…
Reference in a new issue