mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Remove check for same theme when refreshing (#3672)
* Remove check for same theme when refreshing
This commit is contained in:
@@ -51,14 +51,12 @@ Blockly.Theme = function(name, blockStyles, categoryStyles,
|
||||
/**
|
||||
* The block styles map.
|
||||
* @type {!Object.<string, !Blockly.Theme.BlockStyle>}
|
||||
* @package
|
||||
*/
|
||||
this.blockStyles = blockStyles;
|
||||
|
||||
/**
|
||||
* The category styles map.
|
||||
* @type {!Object.<string, Blockly.Theme.CategoryStyle>}
|
||||
* @package
|
||||
*/
|
||||
this.categoryStyles = categoryStyles;
|
||||
|
||||
|
||||
@@ -90,11 +90,6 @@ Blockly.ThemeManager.prototype.getTheme = function() {
|
||||
* @package
|
||||
*/
|
||||
Blockly.ThemeManager.prototype.setTheme = function(theme) {
|
||||
if (this.theme_ === theme) {
|
||||
// No change.
|
||||
return;
|
||||
}
|
||||
|
||||
var prevTheme = this.theme_;
|
||||
this.theme_ = theme;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user