Removed "a" variable, reformatted keys

This commit is contained in:
sjhuang26 committed 2017-12-29 08:30:23 -05:00
1 parent 29d3cb025c
commit 597eced633
1 file changed
+2 -3
+2 -3
View File
@@ -44,9 +44,8 @@ export default function (vm) {
const backdropsMenu = function () {
if (vm.runtime.targets[0] && vm.runtime.targets[0].sprite.costumes.length > 0) {
const a = vm.runtime.targets[0].sprite.costumes.map(costume => [costume.name, costume.name]);
a.push(['next backdrop', 'next backdrop'], ['previous backdrop', 'previous backdrop']);
return a;
return vm.runtime.targets[0].sprite.costumes.map(costume => [costume.name, costume.name])
.concat(['next backdrop', '_nextBackdrop_'], ['previous backdrop', '_prevBackdrop_']);
}
return [['', '']];
};