From bcedc130bbefce543d96fedac42afb87476f8ffa Mon Sep 17 00:00:00 2001 From: RoboErikG Date: Wed, 15 Nov 2017 12:21:07 -0800 Subject: [PATCH] Fix #1444 - broken mutator for text_charat (#1451) * Fix #1444 - broken mutator for text_charat There might no longer be an input named AT on a text_charat block which the mutator had been depending on. There is now a boolean on the block for isAt, though, so use that directly instead. The * Address comments --- blocks/text.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blocks/text.js b/blocks/text.js index 641b881eb..9723469e8 100644 --- a/blocks/text.js +++ b/blocks/text.js @@ -806,8 +806,7 @@ Blockly.Constants.Text.TEXT_CHARAT_MUTATOR_MIXIN = { */ mutationToDom: function() { var container = document.createElement('mutation'); - var isAt = this.getInput('AT').type == Blockly.INPUT_VALUE; - container.setAttribute('at', isAt); + container.setAttribute('at', !!this.isAt_); return container; }, /**