mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user