Merge branch 'feature/variable_management' of https://github.com/google/blockly into feature/variable_management

This commit is contained in:
Rachel Fenichel 2016-07-13 14:36:35 -07:00
commit 18be9d1de8
18 changed files with 801 additions and 300 deletions

View file

@ -443,6 +443,18 @@ Blockly.Toolbox.prototype.getClientRect = function() {
}
};
/**
* Update the flyout's contents without closing it. Should be used in response
* to a change in one of the dynamic categories, such as variables or
* procedures.
*/
Blockly.Toolbox.prototype.refreshSelection = function() {
var selectedItem = this.tree_.getSelectedItem();
if (selectedItem && selectedItem.blocks) {
this.flyout_.show(selectedItem.blocks);
}
};
// Extending Closure's Tree UI.
/**