Skip to content

Commit

Permalink
remove setChildren override from screen view, phetsims/gravity-force-…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 29, 2019
1 parent 50869e6 commit 7daa7d1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions js/ScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,6 @@ define( require => {

return inherit( Node, ScreenView, {

/**
* Make sure that PDOM specific Nodes don't get lost when setting children
* @override
* @param {Node[]} children
*/
setChildren( children ) {

[ this._screenSummaryContent, this.playAreaNode, this.controlAreaNode ].forEach( pdomNode => {
if ( children.indexOf( pdomNode ) < 0 ) {
children.push( pdomNode );
}
} );
Node.prototype.setChildren.call( this, children );
},

/**
* Get the scale to use for laying out the sim components and the navigation bar, so its size will track
* with the sim size
Expand Down

0 comments on commit 7daa7d1

Please sign in to comment.