From 63cfa4229a0bcaf4fcdc111a36b41eeef7c3b81e Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Mon, 24 Oct 2016 11:19:07 -0400 Subject: [PATCH] Fix space-infix-ops http://eslint.org/docs/rules/space-infix-ops --- src/blocks/scratch3_sensing.js | 2 +- src/engine/blocks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blocks/scratch3_sensing.js b/src/blocks/scratch3_sensing.js index b62d09e1f..be83d99c2 100644 --- a/src/blocks/scratch3_sensing.js +++ b/src/blocks/scratch3_sensing.js @@ -116,7 +116,7 @@ Scratch3SensingBlocks.prototype.getKeyPressed = function (args, util) { Scratch3SensingBlocks.prototype.daysSince2000 = function () { var msPerDay = 24 * 60 * 60 * 1000; - var start = new Date(2000, 1-1, 1); + var start = new Date(2000, 1 - 1, 1); var today = new Date(); var dstAdjust = today.getTimezoneOffset() - start.getTimezoneOffset(); var mSecsSinceStart = today.valueOf() - start.valueOf(); diff --git a/src/engine/blocks.js b/src/engine/blocks.js index 736d1778e..84d09a6f9 100644 --- a/src/engine/blocks.js +++ b/src/engine/blocks.js @@ -399,7 +399,7 @@ Blocks.prototype.blockToXML = function (blockId) { // Encode properties of this block. var tagName = (block.shadow) ? 'shadow' : 'block'; var xy = (block.topLevel) ? - ' x="' + block.x +'" y="' + block.y +'"' : + ' x="' + block.x + '" y="' + block.y + '"' : ''; var xmlString = ''; xmlString += '<' + tagName +