Skip to content

Commit

Permalink
Fix #77
Browse files Browse the repository at this point in the history
  • Loading branch information
kazzkiq committed Jul 16, 2018
1 parent c512a31 commit 17ee832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codeflask.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default class CodeFlask {
this.elTextarea.value = newCode;
this.elCode.innerHTML = escape_html(newCode);
this.highlight();
setTimeout(this.runUpdate, 1);
setTimeout(this.runUpdate.bind(this), 1);
}

updateLanguage(newLanguage) {
Expand Down

0 comments on commit 17ee832

Please sign in to comment.