From 2b7b4bf3af57fe2914c38aec9a28c0519ac0d0e5 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Wed, 24 Jan 2018 16:40:07 -0800 Subject: [PATCH] More lint --- core/mutator.js | 19 ++++++++++++++----- core/rendered_connection.js | 3 ++- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/core/mutator.js b/core/mutator.js index 27ee32b02..1446c48ab 100644 --- a/core/mutator.js +++ b/core/mutator.js @@ -88,8 +88,15 @@ Blockly.Mutator.prototype.drawIcon_ = function(group) { }, group); // Axle hole. - Blockly.utils.createSvgElement('circle', - {'class': 'blocklyIconShape', 'r': '2.7', 'cx': '8', 'cy': '8'}, group); + Blockly.utils.createSvgElement( + 'circle', + { + 'class': 'blocklyIconShape', + 'r': '2.7', + 'cx': '8', + 'cy': '8' + }, + group); }; /** @@ -165,14 +172,16 @@ Blockly.Mutator.prototype.updateEditable = function() { if (!this.block_.isInFlyout) { if (this.block_.isEditable()) { if (this.iconGroup_) { - Blockly.utils.removeClass(/** @type {!Element} */ (this.iconGroup_), + Blockly.utils.removeClass( + /** @type {!Element} */ (this.iconGroup_), 'blocklyIconGroupReadonly'); } } else { // Close any mutator bubble. Icon is not clickable. this.setVisible(false); if (this.iconGroup_) { - Blockly.utils.addClass(/** @type {!Element} */ (this.iconGroup_), + Blockly.utils.addClass( + /** @type {!Element} */ (this.iconGroup_), 'blocklyIconGroupReadonly'); } } @@ -208,7 +217,7 @@ Blockly.Mutator.prototype.resizeBubble_ = function() { this.workspaceWidth_ = width; this.workspaceHeight_ = height; // Resize the bubble. - this.bubble_.setBubbleSize(width + doubleBorderWidth, + this.bubble_.setBubbleSize( width + doubleBorderWidth, height + doubleBorderWidth); this.svgDialog_.setAttribute('width', this.workspaceWidth_); this.svgDialog_.setAttribute('height', this.workspaceHeight_); diff --git a/core/rendered_connection.js b/core/rendered_connection.js index 09b27fcfc..cfd0473d1 100644 --- a/core/rendered_connection.js +++ b/core/rendered_connection.js @@ -205,7 +205,8 @@ Blockly.RenderedConnection.prototype.highlight = function() { var xy = this.sourceBlock_.getRelativeToSurfaceXY(); var x = this.x_ - xy.x; var y = this.y_ - xy.y; - Blockly.Connection.highlightedPath_ = Blockly.utils.createSvgElement('path', + Blockly.Connection.highlightedPath_ = Blockly.utils.createSvgElement( + 'path', { 'class': 'blocklyHighlightedConnectionPath', 'd': steps,