From cd9be725c14ed3b6e91f038ed82eb99d9f2dcfd5 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 2 Nov 2017 15:29:48 -0700 Subject: [PATCH] fix lint in field_angle.js --- core/field_angle.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/core/field_angle.js b/core/field_angle.js index 55b15d263..5e66e0a68 100644 --- a/core/field_angle.js +++ b/core/field_angle.js @@ -112,13 +112,13 @@ Blockly.FieldAngle.prototype.render_ = function() { // Update textElement. this.textElement_.textContent = this.getDisplayText_(); - + // Insert degree symbol. if (this.sourceBlock_.RTL) { - this.textElement_.insertBefore(this.symbol_, this.textElement_.firstChild); - } else { - this.textElement_.appendChild(this.symbol_); - } + this.textElement_.insertBefore(this.symbol_, this.textElement_.firstChild); + } else { + this.textElement_.appendChild(this.symbol_); + } this.updateWidth(); }; @@ -174,11 +174,11 @@ Blockly.FieldAngle.prototype.showEditor_ = function() { }, svg); this.gauge_ = Blockly.utils.createSvgElement('path', {'class': 'blocklyAngleGauge'}, svg); - this.line_ = Blockly.utils.createSvgElement('line',{ - 'x1': Blockly.FieldAngle.HALF, - 'y1': Blockly.FieldAngle.HALF, - 'class': 'blocklyAngleLine', - }, svg); + this.line_ = Blockly.utils.createSvgElement('line', { + 'x1': Blockly.FieldAngle.HALF, + 'y1': Blockly.FieldAngle.HALF, + 'class': 'blocklyAngleLine' + }, svg); // Draw markers around the edge. for (var angle = 0; angle < 360; angle += 15) { Blockly.utils.createSvgElement('line', { @@ -317,4 +317,4 @@ Blockly.FieldAngle.prototype.classValidator = function(text) { n -= 360; } return String(n); -}; \ No newline at end of file +};