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 912d811 commit eaa7d9b
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 33 deletions.
14 changes: 7 additions & 7 deletions js/blast-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
*
* @author Sam Reid
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var BlastScreen = require( 'BLAST/blast/BlastScreen' );
var Property = require( 'AXON/Property' );
var Sim = require( 'JOIST/Sim' );
var SimLauncher = require( 'JOIST/SimLauncher' );
var Tandem = require( 'TANDEM/Tandem' );
const BlastScreen = require( 'BLAST/blast/BlastScreen' );
const Property = require( 'AXON/Property' );
const Sim = require( 'JOIST/Sim' );
const SimLauncher = require( 'JOIST/SimLauncher' );
const Tandem = require( 'TANDEM/Tandem' );

// strings
var blastTitleString = require( 'string!BLAST/blast.title' );
const blastTitleString = require( 'string!BLAST/blast.title' );

SimLauncher.launch( function() {

Expand Down
4 changes: 2 additions & 2 deletions js/blast.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
*
* @author Chris Malley (PixelZoom, Inc.)
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var Namespace = require( 'PHET_CORE/Namespace' );
const Namespace = require( 'PHET_CORE/Namespace' );

return new Namespace( 'blast' );
} );
14 changes: 7 additions & 7 deletions js/blast/BlastScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
*
* @author John Blanco
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var blast = require( 'BLAST/blast' );
var BlastModel = require( 'BLAST/blast/model/BlastModel' );
var BlastScreenView = require( 'BLAST/blast/view/BlastScreenView' );
var inherit = require( 'PHET_CORE/inherit' );
var Rectangle = require( 'SCENERY/nodes/Rectangle' );
var Screen = require( 'JOIST/Screen' );
const blast = require( 'BLAST/blast' );
const BlastModel = require( 'BLAST/blast/model/BlastModel' );
const BlastScreenView = require( 'BLAST/blast/view/BlastScreenView' );
const inherit = require( 'PHET_CORE/inherit' );
const Rectangle = require( 'SCENERY/nodes/Rectangle' );
const Screen = require( 'JOIST/Screen' );

/**
* @param {Tandem} tandem
Expand Down
8 changes: 4 additions & 4 deletions js/blast/model/BlastModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*
* @author Sam Reid
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var blast = require( 'BLAST/blast' );
var inherit = require( 'PHET_CORE/inherit' );
var Particle = require( 'BLAST/blast/model/Particle' );
const blast = require( 'BLAST/blast' );
const inherit = require( 'PHET_CORE/inherit' );
const Particle = require( 'BLAST/blast/model/Particle' );

/**
* @param {Tandem} tandem
Expand Down
8 changes: 4 additions & 4 deletions js/blast/model/Particle.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*
* @author Sam Reid
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var blast = require( 'BLAST/blast' );
var inherit = require( 'PHET_CORE/inherit' );
var NumberProperty = require( 'AXON/NumberProperty' );
const blast = require( 'BLAST/blast' );
const inherit = require( 'PHET_CORE/inherit' );
const NumberProperty = require( 'AXON/NumberProperty' );

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

// modules
var blast = require( 'BLAST/blast' );
var inherit = require( 'PHET_CORE/inherit' );
var ParticleNode = require( 'BLAST/blast/view/ParticleNode' );
var ScreenView = require( 'JOIST/ScreenView' );
const blast = require( 'BLAST/blast' );
const inherit = require( 'PHET_CORE/inherit' );
const ParticleNode = require( 'BLAST/blast/view/ParticleNode' );
const ScreenView = require( 'JOIST/ScreenView' );

/**
* @param {BlastModel} model
Expand Down
8 changes: 4 additions & 4 deletions js/blast/view/ParticleNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*
* @author Sam Reid
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var blast = require( 'BLAST/blast' );
var inherit = require( 'PHET_CORE/inherit' );
var Rectangle = require( 'SCENERY/nodes/Rectangle' );
const blast = require( 'BLAST/blast' );
const inherit = require( 'PHET_CORE/inherit' );
const Rectangle = require( 'SCENERY/nodes/Rectangle' );

// constants
var PARTICLE_SIZE = 10;
Expand Down

0 comments on commit eaa7d9b

Please sign in to comment.