Rename checkAndBind and update comments.

This commit is contained in:
Rachel Fenichel
2021-02-23 10:20:13 -08:00
parent ed358c8454
commit f20b06faa8
4 changed files with 18 additions and 17 deletions

View File

@@ -300,10 +300,10 @@ Blockly.Bubble.prototype.createDom_ = function(content, hasResize) {
}
if (!this.workspace_.options.readOnly) {
this.onMouseDownBubbleWrapper_ = Blockly.browserEvents.checkAndBind(
this.onMouseDownBubbleWrapper_ = Blockly.browserEvents.bindFilterable(
this.bubbleBack_, 'mousedown', this, this.bubbleMouseDown_);
if (this.resizeGroup_) {
this.onMouseDownResizeWrapper_ = Blockly.browserEvents.checkAndBind(
this.onMouseDownResizeWrapper_ = Blockly.browserEvents.bindFilterable(
this.resizeGroup_, 'mousedown', this, this.resizeMouseDown_);
}
}
@@ -388,9 +388,9 @@ Blockly.Bubble.prototype.resizeMouseDown_ = function(e) {
new Blockly.utils.Coordinate(
this.workspace_.RTL ? -this.width_ : this.width_, this.height_));
Blockly.Bubble.onMouseUpWrapper_ = Blockly.browserEvents.checkAndBind(
Blockly.Bubble.onMouseUpWrapper_ = Blockly.browserEvents.bindFilterable(
document, 'mouseup', this, Blockly.Bubble.bubbleMouseUp_);
Blockly.Bubble.onMouseMoveWrapper_ = Blockly.browserEvents.checkAndBind(
Blockly.Bubble.onMouseMoveWrapper_ = Blockly.browserEvents.bindFilterable(
document, 'mousemove', this, this.resizeMouseMove_);
Blockly.hideChaff();
// This event has been handled. No need to bubble up to the document.