Skip to content

Commit

Permalink
add no-multi-assign-on-declaration lint rule, phetsims/chipper#794
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 7, 2019
1 parent 34c4c0a commit 50613e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/PhetMenu.js
Expand Up @@ -365,8 +365,7 @@ define( require => {
const maxTextHeight = _.maxBy( textNodes, function( node ) {return node.height;} ).height;

// Create the menu items.
const items = this.items = _.map( keepItemDescriptors, function( itemDescriptor ) {

const items = _.map( keepItemDescriptors, function( itemDescriptor ) {
const menuItemOptions = {
textFill: itemDescriptor.textFill,
checkedProperty: itemDescriptor.checkedProperty,
Expand Down Expand Up @@ -397,6 +396,7 @@ define( require => {
);
}
);
this.items = items;

const separatorWidth = _.maxBy( items, function( item ) {return item.width;} ).width;
const itemHeight = _.maxBy( items, function( item ) {return item.height;} ).height;
Expand Down

0 comments on commit 50613e8

Please sign in to comment.