Fix IE flyout button callback (#2719)

This commit is contained in:
Sam El-Husseini
2019-07-29 10:58:38 -07:00
committed by GitHub
parent 44e559c4d9
commit 0c75664b06

View File

@@ -79,7 +79,9 @@ Blockly.FlyoutButton = function(workspace, targetWorkspace, xml, isLabel) {
* @type {string}
* @private
*/
this.callbackKey_ = xml.getAttribute('callbackKey');
this.callbackKey_ = xml.getAttribute('callbackKey')
/* Check the lower case version too to satisfy IE */
|| xml.getAttribute('callbackkey');
/**
* If specified, a CSS class to add to this button.