mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Fix dispose function
This commit is contained in:
parent
4fc463bafd
commit
27782c97c6
1 changed files with 2 additions and 5 deletions
|
@ -335,11 +335,7 @@ Blockly.FieldColourSlider.prototype.showEditor_ = function() {
|
|||
this.setValue(this.getValue());
|
||||
};
|
||||
|
||||
/**
|
||||
* Hide the colour palette.
|
||||
* @private
|
||||
*/
|
||||
Blockly.FieldColourSlider.widgetDispose_ = function() {
|
||||
Blockly.FieldColourSlider.prototype.dispose = function() {
|
||||
if (Blockly.FieldColourSlider.hueChangeEventKey_) {
|
||||
goog.events.unlistenByKey(Blockly.FieldColourSlider.hueChangeEventKey_);
|
||||
}
|
||||
|
@ -353,4 +349,5 @@ Blockly.FieldColourSlider.widgetDispose_ = function() {
|
|||
Blockly.unbindEvent_(Blockly.FieldColourSlider.eyedropperEventData_);
|
||||
}
|
||||
Blockly.Events.setGroup(false);
|
||||
Blockly.FieldColourSlider.superClass_.dispose.call(this);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue