mirror of
https://github.com/google/blockly.git
synced 2026-01-12 03:17:09 +01:00
Remove @deprecated annotation on Blockly.bindEvent_ (#3333)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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_) {
|
||||
|
||||
Reference in New Issue
Block a user