From f84527e2ac074128d0f92c73192434834712f09c Mon Sep 17 00:00:00 2001 From: zepumph Date: Tue, 29 Oct 2019 10:09:51 -0800 Subject: [PATCH] rename playAreaNode -> pdomPlayAreaNode, override setChildren to keep PDOM Nodes, https://github.com/phetsims/scenery-phet/issues/381 --- js/faradays-law/view/FaradaysLawScreenView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/faradays-law/view/FaradaysLawScreenView.js b/js/faradays-law/view/FaradaysLawScreenView.js index 661571e9..dfb4117b 100644 --- a/js/faradays-law/view/FaradaysLawScreenView.js +++ b/js/faradays-law/view/FaradaysLawScreenView.js @@ -48,7 +48,7 @@ define( require => { summaryNode.addChild( new Node( { tagName: 'p', innerContent: summaryDescriptionString } ) ); summaryNode.addChild( new Node( { tagName: 'p', innerContent: moveMagnetToPlayString } ) ); - this.playAreaNode.addChild( new CircuitDescriptionNode( model ) ); + this.pdomPlayAreaNode.addChild( new CircuitDescriptionNode( model ) ); // coils const bottomCoilNode = new CoilNode( CoilTypeEnum.FOUR_COIL, { @@ -110,7 +110,7 @@ define( require => { // @private this.magnetNodeWithField = new MagnetNodeWithField( model, tandem.createTandem( 'magnetNode' ) ); this.addChild( this.magnetNodeWithField ); - this.playAreaNode.accessibleOrder = [null, this.magnetNodeWithField]; + this.pdomPlayAreaNode.accessibleOrder = [null, this.magnetNodeWithField]; this.controlAreaNode.accessibleOrder = [controlPanel]; // move coils to front