Skip to content

Commit

Permalink
fix issue with null labels
Browse files Browse the repository at this point in the history
  • Loading branch information
walterbender committed Mar 4, 2017
1 parent b46ef2c commit 1b14ad8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,6 @@ define(function (require) {
y += 100 * turlteBlocksScale;
}
}
/*
// Collapse collapsible stacks.
if (['start', 'action', 'drum', 'matrix'].indexOf(myBlock.name) !== -1 && !myBlock.trash) {
if (!myBlock.collapsed) {
myBlock.collapseToggle();
}
}
*/
}
}

Expand Down
2 changes: 1 addition & 1 deletion js/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ function PaletteModel(palette, palettes, name) {
}
}

if (['do', 'nameddo', 'namedbox', 'namedcalc', 'doArg', 'calcArg', 'nameddoArg', 'namedcalcArg'].indexOf(protoBlock.name) != -1 && label.length > 8) {
if (['do', 'nameddo', 'namedbox', 'namedcalc', 'doArg', 'calcArg', 'nameddoArg', 'namedcalcArg'].indexOf(protoBlock.name) != -1 && label != null && label.length > 8) {
label = label.substr(0, 7) + '...';
}

Expand Down

0 comments on commit 1b14ad8

Please sign in to comment.