Skip to content

Commit 8afa6c9

Browse files
committed
MatterEvents.off() would cause a TypeError if you destroyed the Matter world. Fix phaserjs#3562
1 parent 9cfda8a commit 8afa6c9

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## Version 3.4.1 - Miyako - 13th April 2018
4+
5+
### Bug Fixes
6+
7+
* MatterEvents.off() would cause a TypeError if you destroyed the Matter world. Fix #3562 (thanks @pixelscripter)
8+
9+
310
## Version 3.4.0 - Miyako - 12th April 2018
411

512
### New Features

src/physics/matter-js/World.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ var World = new Class({
894894
*/
895895
shutdown: function ()
896896
{
897-
MatterEvents.off();
897+
MatterEvents.off(this.engine);
898898

899899
this.removeAllListeners();
900900

0 commit comments

Comments
 (0)