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 40dd405 commit 4306219
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions adapted-from-phet/js/Brand.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright 2002-2014, University of Colorado Boulder

// Returns branding information for the simulations, see https://github.com/phetsims/brand/issues/1
define( function( require ) {
define( require => {
'use strict';

// modules
var brand = require( 'BRAND/../../js/brand' );
const brand = require( 'BRAND/../../js/brand' );

var Brand = {

Expand Down
4 changes: 2 additions & 2 deletions js/brand.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( 'brand' );
} );
10 changes: 5 additions & 5 deletions phet-io/js/Brand.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// Copyright 2002-2016, University of Colorado Boulder

// Returns branding information for the simulations, see https://github.com/phetsims/brand/issues/1
define( function( require ) {
define( require => {
'use strict';

// modules
var brand = require( 'BRAND/../../js/brand' );
const brand = require( 'BRAND/../../js/brand' );

// strings
var termsPrivacyAndLicensingString = require( 'string!JOIST/termsPrivacyAndLicensing' );
var translationCreditsLinkString = require( 'string!JOIST/translation.credits.link' );
var thirdPartyCreditsLinkString = require( 'string!JOIST/thirdParty.credits.link' );
const termsPrivacyAndLicensingString = require( 'string!JOIST/termsPrivacyAndLicensing' );
const translationCreditsLinkString = require( 'string!JOIST/translation.credits.link' );
const thirdPartyCreditsLinkString = require( 'string!JOIST/thirdParty.credits.link' );

// Documentation for all properties is available in brand/adapted-from-phet/js/Brand.js
var Brand = {
Expand Down
10 changes: 5 additions & 5 deletions phet/js/Brand.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// Copyright 2002-2014, University of Colorado Boulder

// Returns branding information for the simulations, see https://github.com/phetsims/brand/issues/1
define( function( require ) {
define( require => {
'use strict';

// modules
var brand = require( 'BRAND/../../js/brand' );
const brand = require( 'BRAND/../../js/brand' );

// strings
var termsPrivacyAndLicensingString = require( 'string!JOIST/termsPrivacyAndLicensing' );
var translationCreditsLinkString = require( 'string!JOIST/translation.credits.link' );
var thirdPartyCreditsLinkString = require( 'string!JOIST/thirdParty.credits.link' );
const termsPrivacyAndLicensingString = require( 'string!JOIST/termsPrivacyAndLicensing' );
const translationCreditsLinkString = require( 'string!JOIST/translation.credits.link' );
const thirdPartyCreditsLinkString = require( 'string!JOIST/thirdParty.credits.link' );

// Documentation for all properties is available in brand/adapted-from-phet/js/Brand.js
var Brand = {
Expand Down

0 comments on commit 4306219

Please sign in to comment.