Skip to content

Commit

Permalink
fix type expression, see #184
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsamuel137 committed Nov 11, 2015
1 parent 58291e3 commit 39655b3
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 29 deletions.
10 changes: 5 additions & 5 deletions js/cartoon/module/CartoonModeList.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ define( function( require ) {

/**
*
* @param {Property<boolean>} playButtonPressed
* @param {Property<boolean>} gravityEnabled
* @param {Property<boolean>} stepping
* @param {Property<boolean>} rewinding
* @param {Property<number>} timeSpeedScale
* @param {Property.<boolean>} playButtonPressed
* @param {Property.<boolean>} gravityEnabled
* @param {Property.<boolean>} stepping
* @param {Property.<boolean>} rewinding
* @param {Property.<number>} timeSpeedScale
* @constructor
*/
function CartoonModeList( playButtonPressed, gravityEnabled, stepping, rewinding, timeSpeedScale ) {
Expand Down
8 changes: 4 additions & 4 deletions js/common/model/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ define( function( require ) {
* @param {number} mass
* @param {Color} color
* @param {Color} highlight
* @param {function<Body, number, BodyRenderer>} renderer - way to associate the graphical representation directly
* @param {function.<Body, number, BodyRenderer>} renderer - way to associate the graphical representation directly
* instead of later with conditional logic or map
* @param {number} labelAngle
* @param {boolean} massSettable
* @param {number} maxPathLength
* @param {boolean} massReadoutBelow
* @param {number} tickValue
* @param {string} tickLabel
* @param {Property<boolean>} playButtonPressedProperty
* @param {Property<boolean>} steppingProperty
* @param {Property<boolean>} rewindingProperty
* @param {Property.<boolean>} playButtonPressedProperty
* @param {Property.<boolean>} steppingProperty
* @param {Property.<boolean>} rewindingProperty
* @param {boolean} fixed
* @constructor
*/
Expand Down
4 changes: 2 additions & 2 deletions js/common/model/GravityAndOrbitsClock.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ define( function( require ) {
/**
*
* @param {number} baseDTValue (multiplied by scale to obtain true dt)
* @param {Property<boolean>} stepping
* @param {Property<number>} timeSpeedScale
* @param {Property.<boolean>} stepping
* @param {Property.<number>} timeSpeedScale
* @constructor
*/
function GravityAndOrbitsClock( baseDTValue, stepping, timeSpeedScale ) {
Expand Down
2 changes: 1 addition & 1 deletion js/common/model/GravityAndOrbitsModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ define( function( require ) {
/**
* Main constructor for GravityAndOrbitsModel, which contains all of the model logic for the entire sim screen.
* @param {GravityAndOrbitsClock} clock
* @param {Property<Boolean>} gravityEnabledProperty flag to indicate whether gravity is on or off.
* @param {Property.<boolean>} gravityEnabledProperty flag to indicate whether gravity is on or off.
* @constructor
*/
function GravityAndOrbitsModel( clock, gravityEnabledProperty ) {
Expand Down
2 changes: 1 addition & 1 deletion js/common/model/ModelState.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ define( function( require ) {
* Updates the model, producing the next ModelState
* @public
* @param {number} dt
* @param {Property.<Boolean>} gravityEnabledProperty
* @param {Property.<boolean>} gravityEnabledProperty
* @returns {ModelState}
*/
getNextState: function( dt, gravityEnabledProperty ) {
Expand Down
4 changes: 2 additions & 2 deletions js/common/module/GravityAndOrbitsMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ define( function( require ) {
* @param {number} forceScale
* @param {boolean} active
* @param {number} dt
* @param {function<number, string>} timeFormatter
* @param {function.<number, string>} timeFormatter
* @param {Node} iconImage
* @param {number} defaultOrbitalPeriod
* @param {number} velocityVectorScale
* @param {function<BodyNode, Property<boolean>, Node>} massReadoutFactory
* @param {function.<BodyNode, Property.<boolean>, Node>} massReadoutFactory
* @param {Line} initialMeasuringTapeLocation
* @param {number} defaultZoomScale
* @param {Vector2} zoomOffset
Expand Down
2 changes: 1 addition & 1 deletion js/common/module/GravityAndOrbitsModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define( function( require ) {

/**
* @param {boolean} showMeasuringTape
* @param {function<ModeListParameterList, Array<GravityAndOrbitsMode>>} createModes
* @param {function.<ModeListParameterList, Array.<GravityAndOrbitsMode>>} createModes
* @param {number} initialModeIndex
* @param {boolean} showMassCheckBox
* @constructor
Expand Down
10 changes: 5 additions & 5 deletions js/common/module/ModeListParameterList.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ define( function( require ) {
var inherit = require( 'PHET_CORE/inherit' );

/**
* @param {Property<boolean>} playButtonPressed
* @param {Property<boolean>} gravityEnabled
* @param {Property<boolean>} stepping
* @param {Property<boolean>} rewinding
* @param {Property<number>} timeSpeedScale
* @param {Property.<boolean>} playButtonPressed
* @param {Property.<boolean>} gravityEnabled
* @param {Property.<boolean>} stepping
* @param {Property.<boolean>} rewinding
* @param {Property.<number>} timeSpeedScale
* @constructor
*/
function ModeListParameterList( playButtonPressed, gravityEnabled, stepping, rewinding, timeSpeedScale ) {
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/ExplosionNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ define( function( require ) {

/**
* @param {Body} body
* @param {Property<ModelViewTransform>} modelViewTransformProperty
* @param {Property.<ModelViewTransform>} modelViewTransformProperty
* @constructor
*/
function ExplosionNode( body, modelViewTransformProperty ) {
Expand Down
4 changes: 2 additions & 2 deletions js/common/view/PathsNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ define( function( require ) {
/**
*
* @param {Body} bodies
* @param {Property<ModelViewTransform2>} transformProperty
* @param {Property<boolean>} visibleProperty
* @param {Property.<ModelViewTransform2>} transformProperty
* @param {Property.<boolean>} visibleProperty
* @param {Color} color
* @param {Bounds2} canvasBounds
* @constructor
Expand Down
10 changes: 5 additions & 5 deletions js/toScale/module/RealModeList.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ define( function( require ) {
var ModeListParameterList = require( 'GRAVITY_AND_ORBITS/common/module/ModeListParameterList' );

/**
* @param {Property<boolean>} playButtonPressed
* @param {Property<boolean>} gravityEnabled
* @param {Property<boolean>} stepping
* @param {Property<boolean>} rewinding
* @param {Property<number>} timeSpeedScale
* @param {Property.<boolean>} playButtonPressed
* @param {Property.<boolean>} gravityEnabled
* @param {Property.<boolean>} stepping
* @param {Property.<boolean>} rewinding
* @param {Property.<number>} timeSpeedScale
* @constructor
*/
function RealModeList( playButtonPressed, gravityEnabled, stepping, rewinding, timeSpeedScale ) {
Expand Down

0 comments on commit 39655b3

Please sign in to comment.