From 38e7b5bd49d1ce73916fcda18c5d7b49ece4480c Mon Sep 17 00:00:00 2001 From: samreid Date: Fri, 11 Sep 2020 08:42:16 -0600 Subject: [PATCH] Change casing on IO Type, see https://github.com/phetsims/tandem/issues/188 --- js/charges-and-fields/model/ChargedParticleIO.js | 4 ++-- js/charges-and-fields/model/ElectricPotentialLineIO.js | 4 ++-- js/charges-and-fields/model/ModelElementIO.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/charges-and-fields/model/ChargedParticleIO.js b/js/charges-and-fields/model/ChargedParticleIO.js index e7c71f78..9b2eb715 100644 --- a/js/charges-and-fields/model/ChargedParticleIO.js +++ b/js/charges-and-fields/model/ChargedParticleIO.js @@ -1,7 +1,7 @@ // Copyright 2017-2020, University of Colorado Boulder /** - * IO type for ChargedParticle + * IO Type for ChargedParticle * * @author Sam Reid (PhET Interactive Simulations) * @author Andrew Adare (PhET Interactive Simulations) @@ -56,7 +56,7 @@ ChargedParticleIO.methods = { ChargedParticleIO.documentation = 'A Charged Particle'; ChargedParticleIO.validator = { isValidValue: v => v instanceof phet.chargesAndFields.ChargedParticle }; ChargedParticleIO.typeName = 'ChargedParticleIO'; -ObjectIO.validateSubtype( ChargedParticleIO ); +ObjectIO.validateIOType( ChargedParticleIO ); chargesAndFields.register( 'ChargedParticleIO', ChargedParticleIO ); export default ChargedParticleIO; \ No newline at end of file diff --git a/js/charges-and-fields/model/ElectricPotentialLineIO.js b/js/charges-and-fields/model/ElectricPotentialLineIO.js index e434b7e2..a2d7eb8c 100644 --- a/js/charges-and-fields/model/ElectricPotentialLineIO.js +++ b/js/charges-and-fields/model/ElectricPotentialLineIO.js @@ -1,7 +1,7 @@ // Copyright 2017-2020, University of Colorado Boulder /** - * IO type for ElectricPotentialLine + * IO Type for ElectricPotentialLine * * @author Sam Reid (PhET Interactive Simulations) */ @@ -39,7 +39,7 @@ class ElectricPotentialLineIO extends ModelElementIO { ElectricPotentialLineIO.documentation = 'The vector that shows the charge strength and direction.'; ElectricPotentialLineIO.validator = { isValidValue: v => v instanceof phet.chargesAndFields.ElectricPotentialLine }; ElectricPotentialLineIO.typeName = 'ElectricPotentialLineIO'; -ObjectIO.validateSubtype( ElectricPotentialLineIO ); +ObjectIO.validateIOType( ElectricPotentialLineIO ); chargesAndFields.register( 'ElectricPotentialLineIO', ElectricPotentialLineIO ); export default ElectricPotentialLineIO; \ No newline at end of file diff --git a/js/charges-and-fields/model/ModelElementIO.js b/js/charges-and-fields/model/ModelElementIO.js index abaa7aee..5a969f4f 100644 --- a/js/charges-and-fields/model/ModelElementIO.js +++ b/js/charges-and-fields/model/ModelElementIO.js @@ -1,7 +1,7 @@ // Copyright 2017-2020, University of Colorado Boulder /** - * IO type for ModelElement + * IO Type for ModelElement * * @author Sam Reid (PhET Interactive Simulations) * @author Andrew Adare (PhET Interactive Simulations) @@ -44,7 +44,7 @@ class ModelElementIO extends ObjectIO { ModelElementIO.validator = { isValidValue: e => e instanceof phet.chargesAndFields.ModelElement }; ModelElementIO.documentation = 'A Model Element'; ModelElementIO.typeName = 'ModelElementIO'; -ObjectIO.validateSubtype( ModelElementIO ); +ObjectIO.validateIOType( ModelElementIO ); chargesAndFields.register( 'ModelElementIO', ModelElementIO ); export default ModelElementIO; \ No newline at end of file