From 8b24240a5b7dc4bcf059a97b6614de3702155b3a Mon Sep 17 00:00:00 2001 From: David Manthey Date: Thu, 24 May 2018 14:11:25 -0400 Subject: [PATCH] Fix having tutorials update if a text is deleted. Tutorials should rerun whenever the contents change. Some code designed to perform updates when separate code blocks were edited happened to prevent deleting text from triggering the update. --- tutorials/common/tutorials.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/common/tutorials.js b/tutorials/common/tutorials.js index 21e5e01e7b..5ee61256d4 100644 --- a/tutorials/common/tutorials.js +++ b/tutorials/common/tutorials.js @@ -192,8 +192,8 @@ function process_block_debounce(selector, debounce) { processBlockInfo.lastelem = selector; if (!debounce) { process_block(selector); + return; } - return; } processBlockInfo.timer = window.setTimeout(function () { process_block(processBlockInfo.lastelem);