mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Migrate hideChaff() from Blockly to WorkspaceSvg (#5460)
* Add hideChaff() to core/workspace_svg.js * Mark Blockly.hideChaff as deprecated * Update uses of Blockly.hideChaff() to WorkspaceSvg.hideChaff() in core * Update uses of Blockly.hideChaff() to WorkspaceSvg.hideChaff() in demos * Style and formatting fixes * Switch from accessor to stub wrapper for Blockly.hideChaff Co-authored-by: Christopher Allen <cpcallen+github@gmail.com> Co-authored-by: Christopher Allen <cpcallen+github@gmail.com>
This commit is contained in:
@@ -774,7 +774,7 @@ Scrollbar.prototype.onMouseUpHandle_ = function() {
|
||||
* @private
|
||||
*/
|
||||
Scrollbar.prototype.cleanUp_ = function() {
|
||||
Blockly.hideChaff(true);
|
||||
this.workspace_.hideChaff(true);
|
||||
if (Scrollbar.onMouseUpWrapper_) {
|
||||
browserEvents.unbind(Scrollbar.onMouseUpWrapper_);
|
||||
Scrollbar.onMouseUpWrapper_ = null;
|
||||
|
||||
Reference in New Issue
Block a user