From ade149d77c7e53c0493d8edf2c4f376ebe872250 Mon Sep 17 00:00:00 2001 From: seldomU Date: Wed, 5 Aug 2020 16:54:19 +0200 Subject: [PATCH] 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 --- core/flyout_button.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/flyout_button.js b/core/flyout_button.js index 85a64f2e2..d57d13aaf 100644 --- a/core/flyout_button.js +++ b/core/flyout_button.js @@ -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; }; /**