Fix #5421, docs code snippets not running (#5422)

This commit is contained in:
Geoffrey Booth 2022-08-02 09:23:31 -07:00 committed by GitHub
parent ae946308d7
commit 1dfa23b049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -156,7 +156,7 @@ $(document).ready ->
$('[data-action="run-code-example"]').click ->
run = $(@).data 'run'
index = $("##{$(@).data('example')}-js").data 'index'
js = if editors[index]?
js = if editors[index]?.js
editors[index].js
else
$(textareas[index]).val()