Skip to content

Commit 1596bb7

Browse files
committed
renamed
1 parent fc96d12 commit 1596bb7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

v3/js/opt-frontend-common.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ var executeCodeSignalFromRemote = false;
121121
var togetherjsSyncRequested = false;
122122
var pendingCodeOutputScrollTop = null;
123123

124-
var pyInputScroller = '#codeInputPane .CodeMirror-scroll';
124+
var codeMirrorScroller = '#codeInputPane .CodeMirror-scroll';
125125

126126
TogetherJSConfig_ignoreForms = ['.togetherjsIgnore']; // do NOT sync these elements
127127

@@ -286,10 +286,10 @@ function initTogetherJS() {
286286
updateAppDisplay(msg.appMode);
287287

288288
if (appMode == 'edit' && msg.codeInputScrollTop !== undefined &&
289-
$(pyInputScroller).scrollTop() != msg.codeInputScrollTop) {
289+
$(codeMirrorScroller).scrollTop() != msg.codeInputScrollTop) {
290290
// hack: give it a bit of time to settle first ...
291291
$.doTimeout('pyInputCodeMirrorInit', 200, function() {
292-
$(pyInputScroller).scrollTop(msg.codeInputScrollTop);
292+
$(codeMirrorScroller).scrollTop(msg.codeInputScrollTop);
293293
});
294294
}
295295
}
@@ -318,7 +318,7 @@ function initTogetherJS() {
318318
if (TogetherJS.running) {
319319
TogetherJS.send({type: "myAppState",
320320
myAppState: getAppState(),
321-
codeInputScrollTop: $(pyInputScroller).scrollTop(),
321+
codeInputScrollTop: $(codeMirrorScroller).scrollTop(),
322322
pyCodeOutputDivScrollTop: myVisualizer ?
323323
myVisualizer.domRoot.find('#pyCodeOutputDiv').scrollTop() :
324324
undefined});
@@ -378,7 +378,7 @@ function initTogetherJS() {
378378
// value. this is hacky; ideally we have a callback function for
379379
// when setValue() completes.
380380
$.doTimeout('pyInputCodeMirrorInit', 200, function() {
381-
$(pyInputScroller).scrollTop(msg.codeInputScrollTop);
381+
$(codeMirrorScroller).scrollTop(msg.codeInputScrollTop);
382382
});
383383
}
384384
});
@@ -387,7 +387,7 @@ function initTogetherJS() {
387387
// do NOT use a msg.sameUrl guard since that will miss some signals
388388
// due to our funky URLs
389389

390-
$(pyInputScroller).scrollTop(msg.scrollTop);
390+
$(codeMirrorScroller).scrollTop(msg.scrollTop);
391391
});
392392

393393
TogetherJS.hub.on("pyCodeOutputDivScroll", function(msg) {
@@ -589,7 +589,7 @@ function genericOptFrontendReady() {
589589
if (TogetherJS.running && !isExecutingCode) {
590590
TogetherJS.send({type: "hashchange",
591591
appMode: appMode,
592-
codeInputScrollTop: $(pyInputScroller).scrollTop(),
592+
codeInputScrollTop: $(codeMirrorScroller).scrollTop(),
593593
myAppState: getAppState()});
594594
}
595595
});
@@ -634,7 +634,7 @@ function genericOptFrontendReady() {
634634
}
635635

636636

637-
$(pyInputScroller).scroll(function(e) {
637+
$(codeMirrorScroller).scroll(function(e) {
638638
if (TogetherJS.running) {
639639
var elt = $(this);
640640
// debounce

0 commit comments

Comments
 (0)