From 833f08b3f5b1716c9949fed1600dde683a8d85c9 Mon Sep 17 00:00:00 2001 From: samreid Date: Tue, 29 Sep 2020 10:24:24 -0600 Subject: [PATCH] Change {function(new:ObjectIO)} to {IOType}, see https://github.com/phetsims/tandem/issues/211 --- js/Action.js | 5 ++--- js/DerivedProperty.js | 2 +- js/ObservableArray.js | 2 +- js/PropertyIO.js | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/js/Action.js b/js/Action.js index cf4824d0..43b5d1d6 100644 --- a/js/Action.js +++ b/js/Action.js @@ -56,9 +56,8 @@ class Action extends PhetioObject { // phet-io - see PhetioObject.js for doc tandem: Tandem.OPTIONAL, - // {function(new:function(new:ObjectIO),parameterTypes:function(new:ObjectIO))[]} - The non parameterized TypeIO, because - // passing in parameters. Override this to create a subtype of ActionIO as the phetioType instead of a - // parameterized ActionIO Type. + // {function(IOType[]):IOType} - The non parameterized TypeIO. Override this to create a subtype of ActionIO as + // the phetioType instead of a parameterized ActionIO Type. phetioOuterType: Action.ActionIO, phetioState: false, phetioPlayback: PhetioObject.DEFAULT_OPTIONS.phetioPlayback, diff --git a/js/DerivedProperty.js b/js/DerivedProperty.js index ef516b63..5b3c27b8 100644 --- a/js/DerivedProperty.js +++ b/js/DerivedProperty.js @@ -238,7 +238,7 @@ const orFunction = ( value, property ) => { return value || property.value; }; -// {Object.} - Cache each parameterized DerivedPropertyIO so that +// {Object.} - Cache each parameterized DerivedPropertyIO so that // it is only created once. const cache = {}; diff --git a/js/ObservableArray.js b/js/ObservableArray.js index e7ea295d..4490919b 100644 --- a/js/ObservableArray.js +++ b/js/ObservableArray.js @@ -451,7 +451,7 @@ class ObservableArray extends PhetioObject { } } -// {Object.} - Cache each parameterized ObservableArray.ObservableArrayIO so that it +// {Object.} - Cache each parameterized ObservableArray.ObservableArrayIO so that it // is only created once. const cache = {}; diff --git a/js/PropertyIO.js b/js/PropertyIO.js index 41585dcf..2359ec23 100644 --- a/js/PropertyIO.js +++ b/js/PropertyIO.js @@ -14,7 +14,7 @@ import VoidIO from '../../tandem/js/types/VoidIO.js'; import axon from './axon.js'; import Property from './Property.js'; -// {Map.} - Cache each parameterized PropertyIO based on +// {Map.} - Cache each parameterized PropertyIO based on // the parameter type, so that it is only created once const cache = new Map();