mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Removes unnecessary event firing
This commit is contained in:
@@ -17,11 +17,9 @@ Blockly.Style = function(blockStyles) {
|
||||
* block styles.
|
||||
*/
|
||||
Blockly.Style.prototype.setAllBlockStyles = function(blockStyles) {
|
||||
var event = new Blockly.Events.Ui(null, 'blockStylesChanged', this.blockStyles_, blockStyles);
|
||||
for (var key in blockStyles) {
|
||||
this.setBlockStyle(key, blockStyles[key]);
|
||||
}
|
||||
Blockly.Events.fire(event);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user