mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Add undo/redo. Also refactor connections.
Bugs in undoing mutators and renaming variables.
This commit is contained in:
@@ -82,6 +82,7 @@ Blockly.WidgetDiv.show = function(newOwner, rtl, dispose) {
|
||||
Blockly.WidgetDiv.DIV.style.top = xy.y + 'px';
|
||||
Blockly.WidgetDiv.DIV.style.direction = rtl ? 'rtl' : 'ltr';
|
||||
Blockly.WidgetDiv.DIV.style.display = 'block';
|
||||
Blockly.Events.setGroup(true);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -97,6 +98,7 @@ Blockly.WidgetDiv.hide = function() {
|
||||
Blockly.WidgetDiv.dispose_ && Blockly.WidgetDiv.dispose_();
|
||||
Blockly.WidgetDiv.dispose_ = null;
|
||||
goog.dom.removeChildren(Blockly.WidgetDiv.DIV);
|
||||
Blockly.Events.setGroup(false);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user