onStopAll function for stop button

This commit is contained in:
Eric Rosenbaum 2016-10-27 16:28:39 -04:00
parent 1e5555e96d
commit 6dadaba117
2 changed files with 16 additions and 0 deletions
src/engine

View file

@ -429,6 +429,7 @@ Runtime.prototype.stopAll = function () {
// Dispose all clones.
var newTargets = [];
for (var i = 0; i < this.targets.length; i++) {
this.targets[i].onStopAll();
if (this.targets[i].hasOwnProperty('isOriginal') &&
!this.targets[i].isOriginal) {
this.targets[i].dispose();