Skip to content

Commit

Permalink
Fix having tutorials update if a text is deleted.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
manthey committed May 24, 2018
1 parent 343870b commit 8b24240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/common/tutorials.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8b24240

Please sign in to comment.