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 +