Skip to content

Commit

Permalink
dispose of saved and standard LineNodes, #78
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Apr 24, 2017
1 parent 072fb77 commit 55fa719
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/common/view/LineFormsGraphNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ define( function( require ) {
for ( var i = 0; i < parentNode.getChildrenCount() && !removed; i++ ) {
var node = parentNode.getChildAt( i );
if ( line === node.lineProperty.get() ) {
assert && assert( node instanceof LineNode );
node.dispose();
parentNode.removeChild( node );
removed = true;
}
Expand Down

0 comments on commit 55fa719

Please sign in to comment.