Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
Fix for EntityContainer attempting to trigger events once it is destr…
Browse files Browse the repository at this point in the history
…oyed. Built 0.7.2.
  • Loading branch information
probityrules committed Feb 9, 2016
1 parent 0d7baba commit 19501d9
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Platypus",
"version": "0.7.1",
"version": "0.7.2",
"homepage": "https://github.com/PBS-KIDS/Platypus",
"authors": [
"probityrules",
Expand Down
2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Platypus",
"version": "0.7.1",
"version": "0.7.2",
"description": "Platypus Docs",
"url": "https://github.com/PBS-KIDS/Platypus",
"logo": "assets/platypus-title.png",
Expand Down
Binary file removed docs/Platypus_docs-0.7.1.zip
Binary file not shown.
Binary file added docs/Platypus_docs-0.7.2.zip
Binary file not shown.
13 changes: 11 additions & 2 deletions lib/platypus.combined.js
Original file line number Diff line number Diff line change
Expand Up @@ -3127,15 +3127,15 @@ this.platypus = this.platypus || {};
* @type String
* @static
**/
platypus.version = /*=version*/"0.7.1"; // injected by build process
platypus.version = /*=version*/"0.7.2"; // injected by build process

/**
* The build date for this release in UTC format.
* @property buildDate
* @type String
* @static
**/
platypus.buildDate = /*=date*/"Tue, 09 Feb 2016 14:48:45 GMT"; // injected by build process
platypus.buildDate = /*=date*/"Tue, 09 Feb 2016 18:30:02 GMT"; // injected by build process

})();

Expand Down Expand Up @@ -12644,12 +12644,21 @@ platypus.CollisionShape = (function () {
},

triggerEventOnChildren: function (event, message, debug) {
if (this.destroyed) {
return 0;
}

if (!this._listeners[event]) {
this.addNewPrivateEvent(event);
}
return this.triggerEvent(event, message, debug);
},

triggerOnChildren: function (event, message, debug) {
if (this.destroyed) {
return 0;
}

if (!this._listeners[event]) {
this.addNewPrivateEvent(event);
}
Expand Down
10 changes: 5 additions & 5 deletions lib/platypus.min.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/components/EntityContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,21 @@
},

triggerEventOnChildren: function (event, message, debug) {
if (this.destroyed) {
return 0;
}

if (!this._listeners[event]) {
this.addNewPrivateEvent(event);
}
return this.triggerEvent(event, message, debug);
},

triggerOnChildren: function (event, message, debug) {
if (this.destroyed) {
return 0;
}

if (!this._listeners[event]) {
this.addNewPrivateEvent(event);
}
Expand Down

0 comments on commit 19501d9

Please sign in to comment.