Skip to content

Commit 026ce6c

Browse files
author
Walter Bender
committed
more cleanup
1 parent a33d835 commit 026ce6c

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

js/activity.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
// (https://github.com/walterbender/turtleart), but implemented from
1616
// scratch. -- Walter Bender, October 2014.
1717

18-
1918
const _THIS_IS_MUSIC_BLOCKS_ = false;
19+
const _THIS_IS_TURTLE_BLOCKS_ = !_THIS_IS_MUSIC_BLOCKS_;
2020

2121

2222
function facebookInit() {
@@ -129,7 +129,7 @@ define(MYDEFINES, function (compatibility) {
129129
var pasteContainer = null;
130130
var pasteImage = null;
131131
var chartBitmap = null;
132-
if (!_THIS_IS_MUSIC_BLOCKS_) {
132+
if (_THIS_IS_TURTLE_BLOCKS_) {
133133
var saveBox;
134134
}
135135

@@ -690,7 +690,7 @@ define(MYDEFINES, function (compatibility) {
690690
.setRefreshCanvas(refreshCanvas)
691691
.setClear(sendAllToTrash);
692692

693-
if (!_THIS_IS_MUSIC_BLOCKS_) {
693+
if (_THIS_IS_TURTLE_BLOCKS_) {
694694
saveBox = new SaveBox();
695695
saveBox
696696
.setCanvas(canvas)
@@ -1905,11 +1905,8 @@ define(MYDEFINES, function (compatibility) {
19051905

19061906
// Hides the loading animation and unhides the background.
19071907
function showContents(){
1908-
if (!_THIS_IS_MUSIC_BLOCKS_) {
1909-
docById('loading-image-container').style.display = 'none';
1910-
}
1911-
1912-
docById('canvas').style.display = 'none';
1908+
docById('loading-image-container').style.display = 'none';
1909+
// docById('canvas').style.display = 'none';
19131910
docById('hideContents').style.display = 'block';
19141911
};
19151912

js/blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ function Blocks () {
445445
};
446446

447447
this._addRemoveVspaceBlock = function (blk) {
448-
var myBlock = this.blocks.blockList[blk];
448+
var myBlock = this.blockList[blk];
449449

450450
var c = myBlock.connections[myBlock.connections.length - 2];
451451
var secondArgumentSize = 1;

js/logo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4112,7 +4112,7 @@ function Logo () {
41124112
case 'tone':
41134113
break;
41144114
case 'tone2':
4115-
if (!_THIS_IS_MUSIC_BLOCKS_) {
4115+
if (_THIS_IS_TURTLE_BLOCKS_) {
41164116
if (typeof(logo.turtleOscs[turtle]) === 'undefined') {
41174117
logo.turtleOscs[turtle] = new p5.TriOsc();
41184118
}

0 commit comments

Comments
 (0)