Skip to content

Commit

Permalink
var -> const in require statements, use arrow function in define requ…
Browse files Browse the repository at this point in the history
…ire call, phetsims/tasks#1010
  • Loading branch information
zepumph committed Sep 19, 2019
1 parent 32ae72f commit 7c898eb
Show file tree
Hide file tree
Showing 57 changed files with 524 additions and 524 deletions.
8 changes: 4 additions & 4 deletions js/common/ProportionPlaygroundConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

var PhetFont = require( 'SCENERY_PHET/PhetFont' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
var Range = require( 'DOT/Range' );
const PhetFont = require( 'SCENERY_PHET/PhetFont' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const Range = require( 'DOT/Range' );

var ProportionPlaygroundConstants = {
// @public {number} - Diameter/width of the beads in the necklace scene
Expand Down
4 changes: 2 additions & 2 deletions js/common/ProportionPlaygroundQueryParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );

var ProportionPlaygroundQueryParameters = QueryStringMachine.getAll( {

Expand Down
18 changes: 9 additions & 9 deletions js/common/model/ProportionModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var AppleScene = require( 'PROPORTION_PLAYGROUND/common/model/apples/AppleScene' );
var BilliardsScene = require( 'PROPORTION_PLAYGROUND/common/model/billiards/BilliardsScene' );
var inherit = require( 'PHET_CORE/inherit' );
var NecklaceScene = require( 'PROPORTION_PLAYGROUND/common/model/necklace/NecklaceScene' );
var PaintScene = require( 'PROPORTION_PLAYGROUND/common/model/paint/PaintScene' );
var Property = require( 'AXON/Property' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
var ProportionPlaygroundQueryParameters = require( 'PROPORTION_PLAYGROUND/common/ProportionPlaygroundQueryParameters' );
const AppleScene = require( 'PROPORTION_PLAYGROUND/common/model/apples/AppleScene' );
const BilliardsScene = require( 'PROPORTION_PLAYGROUND/common/model/billiards/BilliardsScene' );
const inherit = require( 'PHET_CORE/inherit' );
const NecklaceScene = require( 'PROPORTION_PLAYGROUND/common/model/necklace/NecklaceScene' );
const PaintScene = require( 'PROPORTION_PLAYGROUND/common/model/paint/PaintScene' );
const Property = require( 'AXON/Property' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const ProportionPlaygroundQueryParameters = require( 'PROPORTION_PLAYGROUND/common/ProportionPlaygroundQueryParameters' );

/**
* @constructor
Expand Down
12 changes: 6 additions & 6 deletions js/common/model/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var BooleanProperty = require( 'AXON/BooleanProperty' );
var DerivedProperty = require( 'AXON/DerivedProperty' );
var inherit = require( 'PHET_CORE/inherit' );
var Property = require( 'AXON/Property' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const BooleanProperty = require( 'AXON/BooleanProperty' );
const DerivedProperty = require( 'AXON/DerivedProperty' );
const inherit = require( 'PHET_CORE/inherit' );
const Property = require( 'AXON/Property' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );

/**
* @constructor
Expand Down
10 changes: 5 additions & 5 deletions js/common/model/SceneRatio.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
*
* @author Jonathan Olson <[email protected]>
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var Emitter = require( 'AXON/Emitter' );
var inherit = require( 'PHET_CORE/inherit' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
var Side = require( 'PROPORTION_PLAYGROUND/common/model/Side' );
const Emitter = require( 'AXON/Emitter' );
const inherit = require( 'PHET_CORE/inherit' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const Side = require( 'PROPORTION_PLAYGROUND/common/model/Side' );

/**
* @constructor
Expand Down
4 changes: 2 additions & 2 deletions js/common/model/Side.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
*
* @author Jonathan Olson <[email protected]>
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );

var Side = {
LEFT: 'LEFT',
Expand Down
12 changes: 6 additions & 6 deletions js/common/model/apples/AppleGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var inherit = require( 'PHET_CORE/inherit' );
var NumberProperty = require( 'AXON/NumberProperty' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
var ProportionPlaygroundConstants = require( 'PROPORTION_PLAYGROUND/common/ProportionPlaygroundConstants' );
var SceneRatio = require( 'PROPORTION_PLAYGROUND/common/model/SceneRatio' );
const inherit = require( 'PHET_CORE/inherit' );
const NumberProperty = require( 'AXON/NumberProperty' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const ProportionPlaygroundConstants = require( 'PROPORTION_PLAYGROUND/common/ProportionPlaygroundConstants' );
const SceneRatio = require( 'PROPORTION_PLAYGROUND/common/model/SceneRatio' );

/**
* @constructor
Expand Down
12 changes: 6 additions & 6 deletions js/common/model/apples/AppleScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var AppleGroup = require( 'PROPORTION_PLAYGROUND/common/model/apples/AppleGroup' );
var BooleanProperty = require( 'AXON/BooleanProperty' );
var inherit = require( 'PHET_CORE/inherit' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
var Scene = require( 'PROPORTION_PLAYGROUND/common/model/Scene' );
const AppleGroup = require( 'PROPORTION_PLAYGROUND/common/model/apples/AppleGroup' );
const BooleanProperty = require( 'AXON/BooleanProperty' );
const inherit = require( 'PHET_CORE/inherit' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const Scene = require( 'PROPORTION_PLAYGROUND/common/model/Scene' );

/**
* @constructor
Expand Down
10 changes: 5 additions & 5 deletions js/common/model/billiards/BilliardsScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var BilliardsTable = require( 'PROPORTION_PLAYGROUND/common/model/billiards/BilliardsTable' );
var inherit = require( 'PHET_CORE/inherit' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
var Scene = require( 'PROPORTION_PLAYGROUND/common/model/Scene' );
const BilliardsTable = require( 'PROPORTION_PLAYGROUND/common/model/billiards/BilliardsTable' );
const inherit = require( 'PHET_CORE/inherit' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const Scene = require( 'PROPORTION_PLAYGROUND/common/model/Scene' );

/**
* @constructor
Expand Down
22 changes: 11 additions & 11 deletions js/common/model/billiards/BilliardsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var BooleanProperty = require( 'AXON/BooleanProperty' );
var Emitter = require( 'AXON/Emitter' );
var inherit = require( 'PHET_CORE/inherit' );
var NumberProperty = require( 'AXON/NumberProperty' );
var ObservableArray = require( 'AXON/ObservableArray' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
var ProportionPlaygroundConstants = require( 'PROPORTION_PLAYGROUND/common/ProportionPlaygroundConstants' );
var SceneRatio = require( 'PROPORTION_PLAYGROUND/common/model/SceneRatio' );
var Vector2 = require( 'DOT/Vector2' );
var Vector2Property = require( 'DOT/Vector2Property' );
const BooleanProperty = require( 'AXON/BooleanProperty' );
const Emitter = require( 'AXON/Emitter' );
const inherit = require( 'PHET_CORE/inherit' );
const NumberProperty = require( 'AXON/NumberProperty' );
const ObservableArray = require( 'AXON/ObservableArray' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const ProportionPlaygroundConstants = require( 'PROPORTION_PLAYGROUND/common/ProportionPlaygroundConstants' );
const SceneRatio = require( 'PROPORTION_PLAYGROUND/common/model/SceneRatio' );
const Vector2 = require( 'DOT/Vector2' );
const Vector2Property = require( 'DOT/Vector2Property' );

// constants
var scratchVector = new Vector2( 0, 0 );
Expand Down
16 changes: 8 additions & 8 deletions js/common/model/necklace/Necklace.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var DerivedProperty = require( 'AXON/DerivedProperty' );
var inherit = require( 'PHET_CORE/inherit' );
var NecklaceLayout = require( 'PROPORTION_PLAYGROUND/common/model/necklace/NecklaceLayout' );
var NumberProperty = require( 'AXON/NumberProperty' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
var ProportionPlaygroundConstants = require( 'PROPORTION_PLAYGROUND/common/ProportionPlaygroundConstants' );
var SceneRatio = require( 'PROPORTION_PLAYGROUND/common/model/SceneRatio' );
const DerivedProperty = require( 'AXON/DerivedProperty' );
const inherit = require( 'PHET_CORE/inherit' );
const NecklaceLayout = require( 'PROPORTION_PLAYGROUND/common/model/necklace/NecklaceLayout' );
const NumberProperty = require( 'AXON/NumberProperty' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const ProportionPlaygroundConstants = require( 'PROPORTION_PLAYGROUND/common/ProportionPlaygroundConstants' );
const SceneRatio = require( 'PROPORTION_PLAYGROUND/common/model/SceneRatio' );

/**
* @constructor
Expand Down
20 changes: 10 additions & 10 deletions js/common/model/necklace/NecklaceLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
* @author Sam Reid (PhET Interactive Simulations)
* @author Andrea Lin
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var inherit = require( 'PHET_CORE/inherit' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
var ProportionPlaygroundConstants = require( 'PROPORTION_PLAYGROUND/common/ProportionPlaygroundConstants' );
var Random = require( 'DOT/Random' );
var RoundBead = require( 'PROPORTION_PLAYGROUND/common/model/necklace/RoundBead' );
var Shape = require( 'KITE/Shape' );
var SquareBead = require( 'PROPORTION_PLAYGROUND/common/model/necklace/SquareBead' );
var Util = require( 'DOT/Util' );
var Vector2 = require( 'DOT/Vector2' );
const inherit = require( 'PHET_CORE/inherit' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const ProportionPlaygroundConstants = require( 'PROPORTION_PLAYGROUND/common/ProportionPlaygroundConstants' );
const Random = require( 'DOT/Random' );
const RoundBead = require( 'PROPORTION_PLAYGROUND/common/model/necklace/RoundBead' );
const Shape = require( 'KITE/Shape' );
const SquareBead = require( 'PROPORTION_PLAYGROUND/common/model/necklace/SquareBead' );
const Util = require( 'DOT/Util' );
const Vector2 = require( 'DOT/Vector2' );

// {number} - The diameter of beads (for the square bead, it's from the center of the bead to the center of a side)
var BEAD_DIAMETER = ProportionPlaygroundConstants.BEAD_DIAMETER;
Expand Down
10 changes: 5 additions & 5 deletions js/common/model/necklace/NecklaceScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var inherit = require( 'PHET_CORE/inherit' );
var Necklace = require( 'PROPORTION_PLAYGROUND/common/model/necklace/Necklace' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
var Scene = require( 'PROPORTION_PLAYGROUND/common/model/Scene' );
const inherit = require( 'PHET_CORE/inherit' );
const Necklace = require( 'PROPORTION_PLAYGROUND/common/model/necklace/Necklace' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const Scene = require( 'PROPORTION_PLAYGROUND/common/model/Scene' );

/**
* @constructor
Expand Down
6 changes: 3 additions & 3 deletions js/common/model/necklace/RoundBead.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
*
* @author Jonathan Olson
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var inherit = require( 'PHET_CORE/inherit' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const inherit = require( 'PHET_CORE/inherit' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );

/**
* @constructor
Expand Down
6 changes: 3 additions & 3 deletions js/common/model/necklace/SquareBead.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
*
* @author Jonathan Olson
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var inherit = require( 'PHET_CORE/inherit' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const inherit = require( 'PHET_CORE/inherit' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );

/**
* @constructor
Expand Down
6 changes: 3 additions & 3 deletions js/common/model/paint/PaintBalloon.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var inherit = require( 'PHET_CORE/inherit' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const inherit = require( 'PHET_CORE/inherit' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );

// {number} - In seconds, the time from "launch" to when the balloon "hits" the splotch.
var TIME_TO_HIT = 0.5;
Expand Down
14 changes: 7 additions & 7 deletions js/common/model/paint/PaintChoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
* @author Sam Reid (PhET Interactive Simulations)
* @author Jonathan Olson <[email protected]>
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var Color = require( 'SCENERY/util/Color' );
var DerivedProperty = require( 'AXON/DerivedProperty' );
var inherit = require( 'PHET_CORE/inherit' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
var ProportionPlaygroundColorProfile = require( 'PROPORTION_PLAYGROUND/common/view/ProportionPlaygroundColorProfile' );
var Side = require( 'PROPORTION_PLAYGROUND/common/model/Side' );
const Color = require( 'SCENERY/util/Color' );
const DerivedProperty = require( 'AXON/DerivedProperty' );
const inherit = require( 'PHET_CORE/inherit' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const ProportionPlaygroundColorProfile = require( 'PROPORTION_PLAYGROUND/common/view/ProportionPlaygroundColorProfile' );
const Side = require( 'PROPORTION_PLAYGROUND/common/model/Side' );

/**
* Models mixing of watercolor paints with the weighted geometric mean, then with an applied gamma correction.
Expand Down
6 changes: 3 additions & 3 deletions js/common/model/paint/PaintDrip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var inherit = require( 'PHET_CORE/inherit' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const inherit = require( 'PHET_CORE/inherit' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );

/**
* @constructor
Expand Down
8 changes: 4 additions & 4 deletions js/common/model/paint/PaintQuantity.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*
* @author Jonathan Olson <[email protected]>
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var inherit = require( 'PHET_CORE/inherit' );
var NumberProperty = require( 'AXON/NumberProperty' );
var proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );
const inherit = require( 'PHET_CORE/inherit' );
const NumberProperty = require( 'AXON/NumberProperty' );
const proportionPlayground = require( 'PROPORTION_PLAYGROUND/proportionPlayground' );

/**
* @constructor
Expand Down
Loading

0 comments on commit 7c898eb

Please sign in to comment.