From a50707b83148a00948eedc93c7250e8c2b877855 Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Wed, 8 Apr 2020 22:04:27 -0600 Subject: [PATCH] Initial work for removing Events .on()/.onStatic()/.off()/.offStatic(), see https://github.com/phetsims/scenery/issues/490 --- js/concentration/view/ConcentrationMeterNode.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/concentration/view/ConcentrationMeterNode.js b/js/concentration/view/ConcentrationMeterNode.js index d7e56c6f..e3abfb89 100644 --- a/js/concentration/view/ConcentrationMeterNode.js +++ b/js/concentration/view/ConcentrationMeterNode.js @@ -107,10 +107,10 @@ class ConcentrationMeterNode extends Node { else { solution.percentConcentrationProperty.link( updateValue ); } - solutionNode.on( 'bounds', updateValue ); - stockSolutionNode.on( 'bounds', updateValue ); - solventFluidNode.on( 'bounds', updateValue ); - drainFluidNode.on( 'bounds', updateValue ); + solutionNode.boundsProperty.lazyLink( updateValue ); + stockSolutionNode.boundsProperty.lazyLink( updateValue ); + solventFluidNode.boundsProperty.lazyLink( updateValue ); + drainFluidNode.boundsProperty.lazyLink( updateValue ); } }