MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onEdited

Method onEdited

tools/xsbug/CodeView.js:525–539  ·  view source on GitHub ↗
(column, code)

Source from the content-addressed store, hash-verified

523 this.lineHeight = 0;
524 }
525 onEdited(column, code) {
526 var former = column.length;
527 var current = code.lineCount;
528 if (former < current) {
529 let dictionary = { height: Math.round(code.lineHeight) };
530 while (former < current) {
531 column.add(LineNumber(former, dictionary));
532 former++;
533 }
534 this.onBreakpointsChanged(column);
535 }
536 else if (former > current) {
537 column.empty(current);
538 }
539 }
540 onLineHeightChanged(column, lineHeight) {
541 if (this.lineHeight != lineHeight) {
542 this.lineHeight = lineHeight;

Callers 1

onFileChangedMethod · 0.45

Calls 3

onBreakpointsChangedMethod · 0.95
addMethod · 0.65
emptyMethod · 0.65

Tested by

no test coverage detected