Block highlighting

* Separate block selection (editing) from highlighting (execution).
* Remove add/removeDragging functions. They clutter the API for no reason.
This commit is contained in:
Neil Fraser
2016-10-26 18:39:56 -07:00
committed by GitHub
parent 6300faf85e
commit 144be4d49f
4 changed files with 63 additions and 63 deletions

View File

@@ -172,7 +172,6 @@
alert('Ready to execute this code:\n\n' + code);
document.getElementById('stepButton').disabled = '';
highlightPause = false;
workspace.traceOn(true);
workspace.highlightBlock(null);
}
@@ -183,6 +182,7 @@
if (!ok) {
// Program complete, no more code to execute.
document.getElementById('stepButton').disabled = 'disabled';
workspace.highlightBlock(null);
return;
}
}