Skip to content

Commit ae4ffb0

Browse files
committed
minor bugfixes
1 parent 394fffd commit ae4ffb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

v3/js/opt-frontend-common.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ var isExecutingCode = false; // nasty, nasty global
6464
var appMode = 'edit'; // 'edit' or 'display'. also support
6565
// 'visualize' for backward compatibility (same as 'display')
6666

67-
var pyInputCodeMirror; // CodeMirror object that contains the input text
68-
var pyInputAceEditor; // Ace editor object that contains the input text
67+
var pyInputCodeMirror; // CodeMirror object that contains the input code
68+
var pyInputAceEditor; // Ace editor object that contains the input code
6969

7070

7171
// BEGIN - shared session stuff
@@ -523,12 +523,12 @@ function supports_html5_storage() {
523523
}
524524
}
525525

526-
// abstraction so that we can swap out CodeMirror or Ace
526+
// abstraction so that we can use either CodeMirror or Ace as our code editor
527527
function pyInputGetValue() {
528528
return pyInputCodeMirror.getValue();
529529
}
530530

531-
function pyInputSetValue(val) {
531+
function pyInputSetValue(dat) {
532532
pyInputCodeMirror.setValue(dat.rtrim() /* kill trailing spaces */);
533533
$('#urlOutput,#embedCodeOutput').val('');
534534

0 commit comments

Comments
 (0)