Skip to content

Commit

Permalink
don't assign onPlateProperty if it has been disposed, phetsims/axon#242
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed May 30, 2019
1 parent 666ae2b commit 8706cd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/common/model/TermCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,9 @@ define( function( require ) {
// ORDER IS VERY IMPORTANT HERE!
var cell = this.plate.removeTerm( term );
this.termsOnPlate.remove( term );
term.onPlateProperty.value = false;
if ( !term.onPlateProperty.isDisposed ) {
term.onPlateProperty.value = false;
}
return cell;
},

Expand Down

0 comments on commit 8706cd9

Please sign in to comment.