Removes unnecessary event firing

This commit is contained in:
alschmiedt
2018-12-18 10:56:40 -08:00
parent be78838335
commit 5ba66a3418

View File

@@ -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);
};
/**