Skip to content

Commit e37ae44

Browse files
committed
Fix ESLint errors
1 parent 6944b2a commit e37ae44

4 files changed

Lines changed: 12 additions & 13 deletions

File tree

core/block_outline.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ Blockly.BlockOutline.prototype.onMinimapClick_ = function(e) {
331331
var matrix = this.svgGroup_.getScreenCTM().inverse();
332332
point = point.matrixTransform(matrix);
333333

334-
var bounds = this.getWorkspaceBounds_();
335334
var metrics = this.workspace_.getMetrics();
336335
var workspaceScale = this.workspace_.scale || 1;
337336

core/collapse_gutter.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ Blockly.CollapseGutter.prototype.createDom = function() {
138138
// Hover effects (same as minimap) - save listeners for cleanup
139139
var self = this;
140140
this.eventListeners_.push(
141-
Blockly.bindEvent_(this.svgGroup_, 'mouseenter', null, function() {
142-
self.svgGroup_.setAttribute('opacity', '0.8');
143-
})
141+
Blockly.bindEvent_(this.svgGroup_, 'mouseenter', null, function() {
142+
self.svgGroup_.setAttribute('opacity', '0.8');
143+
})
144144
);
145145
this.eventListeners_.push(
146-
Blockly.bindEvent_(this.svgGroup_, 'mouseleave', null, function() {
147-
self.svgGroup_.setAttribute('opacity', '0.5');
148-
})
146+
Blockly.bindEvent_(this.svgGroup_, 'mouseleave', null, function() {
147+
self.svgGroup_.setAttribute('opacity', '0.5');
148+
})
149149
);
150150

151151
return this.svgGroup_;
@@ -244,7 +244,7 @@ Blockly.CollapseGutter.prototype.createButton_ = function(block, inputName) {
244244
}, null);
245245

246246
// Transparent circle for larger click area (invisible)
247-
var clickArea = Blockly.utils.createSvgElement('circle', {
247+
Blockly.utils.createSvgElement('circle', {
248248
'r': '10',
249249
'fill': 'transparent',
250250
'stroke': 'none'

core/collapse_icon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ Blockly.CollapseIcon.prototype.isVisible = function() {
236236

237237
/**
238238
* This icon doesn't have a bubble to show/hide.
239-
* @param {boolean} visible Ignored.
239+
* @param {boolean} _visible Ignored.
240240
*/
241-
Blockly.CollapseIcon.prototype.setVisible = function(visible) {
241+
Blockly.CollapseIcon.prototype.setVisible = function(_visible) {
242242
// No-op, this icon doesn't have a bubble
243243
};
244244

core/grid.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Blockly.Grid.prototype.showColumnGuide = function(block, targetY, opt_showProjec
325325
var defs = this.columnGuideGroup_.ownerDocument.querySelector('defs');
326326
if (!defs) {
327327
defs = Blockly.utils.createSvgElement('defs', {},
328-
this.columnGuideGroup_.ownerSVGElement);
328+
this.columnGuideGroup_.ownerSVGElement);
329329
}
330330

331331
var gradient = Blockly.utils.createSvgElement('linearGradient', {
@@ -355,7 +355,7 @@ Blockly.Grid.prototype.showColumnGuide = function(block, targetY, opt_showProjec
355355
}, gradient);
356356

357357
// Create wider shadow layer (outer)
358-
var shadow = Blockly.utils.createSvgElement('line', {
358+
Blockly.utils.createSvgElement('line', {
359359
'x1': 48,
360360
'y1': targetY,
361361
'x2': 48,
@@ -366,7 +366,7 @@ Blockly.Grid.prototype.showColumnGuide = function(block, targetY, opt_showProjec
366366
}, this.columnGuideGroup_);
367367

368368
// Create sharper projection line (inner)
369-
var projection = Blockly.utils.createSvgElement('line', {
369+
Blockly.utils.createSvgElement('line', {
370370
'x1': 48,
371371
'y1': targetY,
372372
'x2': 48,

0 commit comments

Comments
 (0)