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 97918ad commit 126773f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions js/area-model-multiplication-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
*
* @author Jonathan Olson <[email protected]>
*/
define( function( require ) {
define( require => {
'use strict';

// modules
var ExploreScreen = require( 'AREA_MODEL_COMMON/screens/ExploreScreen' );
var GenericGameScreen = require( 'AREA_MODEL_COMMON/screens/GenericGameScreen' );
var GenericScreen = require( 'AREA_MODEL_COMMON/screens/GenericScreen' );
var Sim = require( 'JOIST/Sim' );
var SimLauncher = require( 'JOIST/SimLauncher' );
const ExploreScreen = require( 'AREA_MODEL_COMMON/screens/ExploreScreen' );
const GenericGameScreen = require( 'AREA_MODEL_COMMON/screens/GenericGameScreen' );
const GenericScreen = require( 'AREA_MODEL_COMMON/screens/GenericScreen' );
const Sim = require( 'JOIST/Sim' );
const SimLauncher = require( 'JOIST/SimLauncher' );

// strings
var areaModelMultiplicationTitleString = require( 'string!AREA_MODEL_MULTIPLICATION/area-model-multiplication.title' );
const areaModelMultiplicationTitleString = require( 'string!AREA_MODEL_MULTIPLICATION/area-model-multiplication.title' );

var simOptions = {
credits: {
Expand Down
4 changes: 2 additions & 2 deletions js/areaModelMultiplication.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 Namespace = require( 'PHET_CORE/Namespace' );
const Namespace = require( 'PHET_CORE/Namespace' );

return new Namespace( 'areaModelMultiplication' );
} );

0 comments on commit 126773f

Please sign in to comment.