mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Fixed disabled blocks in trashcan.
This commit is contained in:
committed by
Neil Fraser
parent
a9420154a2
commit
b2a8172720
@@ -287,11 +287,6 @@ Blockly.Trashcan.prototype.init = function(verticalSpacing) {
|
||||
Blockly.utils.dom.insertAfter(this.flyout_.createDom('svg'),
|
||||
this.workspace_.getParentSvg());
|
||||
this.flyout_.init(this.workspace_);
|
||||
this.flyout_.isBlockCreatable_ = function() {
|
||||
// All blocks, including disabled ones, can be dragged from the
|
||||
// trashcan flyout.
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
this.verticalSpacing_ = this.MARGIN_BOTTOM_ + verticalSpacing;
|
||||
@@ -501,6 +496,7 @@ Blockly.Trashcan.prototype.cleanBlockXML_ = function(xml) {
|
||||
node.removeAttribute('x');
|
||||
node.removeAttribute('y');
|
||||
node.removeAttribute('id');
|
||||
node.removeAttribute('disabled');
|
||||
}
|
||||
|
||||
// Try to go down the tree
|
||||
|
||||
Reference in New Issue
Block a user