Remove @deprecated annotation on Blockly.bindEvent_ (#3333)

This commit is contained in:
Sam El-Husseini
2019-10-25 19:15:27 -04:00
committed by GitHub
parent 3b25c514c2
commit 7e82d0d201
4 changed files with 2 additions and 6 deletions

View File

@@ -522,9 +522,8 @@ Blockly.bindEventWithChecks_ = function(node, name, thisObject, func,
/**
* Bind an event to a function call. Handles multitouch events by using the
* coordinates of the first changed touch, and doesn't do any safety checks for
* simultaneous event processing.
* @deprecated in favor of bindEventWithChecks_, but preserved for external
* users.
* simultaneous event processing. In most cases prefer is to use
* `Blockly.bindEventWithChecks_`.
* @param {!EventTarget} node Node upon which to listen.
* @param {string} name Event name to listen to (e.g. 'mousedown').
* @param {Object} thisObject The value of 'this' in the function.

View File

@@ -263,7 +263,6 @@ Blockly.tree.TreeControl.prototype.exitDocument = function() {
/**
* Adds the event listeners to the tree.
* @private
* @suppress {deprecated} Suppress deprecated bindEvent_ call.
*/
Blockly.tree.TreeControl.prototype.attachEvents_ = function() {
var el = this.getElement();

View File

@@ -579,7 +579,6 @@ Blockly.Flyout.prototype.clearOldBlocks_ = function() {
* @param {!SVGElement} rect The invisible rectangle under the block that acts
* as a mat for that block.
* @protected
* @suppress {deprecated} Suppress deprecated bindEvent_ call.
*/
Blockly.Flyout.prototype.addBlockListeners_ = function(root, block, rect) {
this.listeners_.push(Blockly.bindEventWithChecks_(root, 'mousedown', null,

View File

@@ -456,7 +456,6 @@ Blockly.init_ = function(mainWorkspace) {
* Also, 'keydown' has to be on the whole document since the browser doesn't
* understand a concept of focus on the SVG image.
* @private
* @suppress {deprecated} Suppress deprecated bindEvent_ call.
*/
Blockly.inject.bindDocumentEvents_ = function() {
if (!Blockly.documentEventsBound_) {