mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Missing semicolon
This commit is contained in:
@@ -402,7 +402,7 @@ Blockly.Events.fromJson = function(json, workspace) {
|
||||
* Enable/disable a block depending on whether it is properly connected.
|
||||
* Use this on applications where all blocks should be connected to a top block.
|
||||
* Recommend setting the 'disable' option to 'false' in the config so that
|
||||
* users don't try to reenable disabled orphan blocks.
|
||||
* users don't try to re-enable disabled orphan blocks.
|
||||
* @param {!Blockly.Events.Abstract} event Custom data for event.
|
||||
*/
|
||||
Blockly.Events.disableOrphans = function(event) {
|
||||
@@ -411,7 +411,7 @@ Blockly.Events.disableOrphans = function(event) {
|
||||
var workspace = Blockly.Workspace.getById(event.workspaceId);
|
||||
var block = workspace.getBlockById(event.blockId);
|
||||
if (block) {
|
||||
var parent = block.getParent()
|
||||
var parent = block.getParent();
|
||||
if (parent && parent.isEnabled()) {
|
||||
var children = block.getDescendants(false);
|
||||
for (var i = 0, child; child = children[i]; i++) {
|
||||
|
||||
Reference in New Issue
Block a user