flyout button stores all the deserialized properties (#4107)

The properties can be useful for callbacks, see https://github.com/google/blockly/issues/4027#issuecomment-656325534
This commit is contained in:
seldomU
2020-08-05 16:54:19 +02:00
committed by GitHub
parent f3fdab11fb
commit ade149d77c

View File

@@ -85,6 +85,12 @@ Blockly.FlyoutButton = function(workspace, targetWorkspace, json, isLabel) {
* @private
*/
this.onMouseUpWrapper_ = null;
/**
* The JSON specifying the label / button.
* @type {!Blockly.utils.toolbox.Button|!Blockly.utils.toolbox.Label}
*/
this.info = json;
};
/**