From 7f4efe4ebedec5f0f5e5c4fbc38e6ca5e0267a1a Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Fri, 2 Dec 2016 14:12:34 -0800 Subject: [PATCH] createSvgElement is now in utils. fix two calls. --- core/flyout_button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/flyout_button.js b/core/flyout_button.js index ca3d49ab6..baecd2fc8 100644 --- a/core/flyout_button.js +++ b/core/flyout_button.js @@ -125,7 +125,7 @@ Blockly.FlyoutButton.prototype.createDom = function() { cssClass += ' ' + this.cssClass_; } - this.svgGroup_ = Blockly.createSvgElement('g', {'class': cssClass}, + this.svgGroup_ = Blockly.utils.createSvgElement('g', {'class': cssClass}, this.workspace_.getCanvas()); if (!this.isLabel_) { @@ -142,7 +142,7 @@ Blockly.FlyoutButton.prototype.createDom = function() { 'rx': 4, 'ry': 4}, this.svgGroup_); - var svgText = Blockly.createSvgElement('text', + var svgText = Blockly.utils.createSvgElement('text', {'class': this.isLabel_ ? 'blocklyFlyoutLabelText' : 'blocklyText', 'x': 0, 'y': 0, 'text-anchor': 'middle'}, this.svgGroup_);