Skip to content

Commit 5583dc9

Browse files
committed
Clean up code
1 parent b3c8458 commit 5583dc9

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

code-input.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,12 +539,10 @@ var codeInput = {
539539
// Synchronise the size of the pre/code and textarea elements
540540
if(this.template.preElementStyled) {
541541
this.style.backgroundColor = getComputedStyle(this.preElement).backgroundColor;
542-
console.log(`calc(${getComputedStyle(this.preElement).height} - ${getComputedStyle(this.preElement).paddingTop} - ${getComputedStyle(this.preElement).paddingBottom})`, `calc(${getComputedStyle(this.preElement).width} - ${getComputedStyle(this.preElement).paddingLeft} - ${getComputedStyle(this.preElement).paddingRight})`);
543542
this.textareaElement.style.height = getComputedStyle(this.preElement).height;
544543
this.textareaElement.style.width = getComputedStyle(this.preElement).width;
545544
} else {
546545
this.style.backgroundColor = getComputedStyle(this.codeElement).backgroundColor;
547-
console.log(`calc(${getComputedStyle(this.codeElement).height} - ${getComputedStyle(this.codeElement).paddingTop} - ${getComputedStyle(this.codeElement).paddingBottom})`, `calc(${getComputedStyle(this.codeElement).width} - ${getComputedStyle(this.codeElement).paddingLeft} - ${getComputedStyle(this.codeElement).paddingRight})`);
548546
this.textareaElement.style.height = getComputedStyle(this.codeElement).height;
549547
this.textareaElement.style.width = getComputedStyle(this.codeElement).width;
550548
}

plugins/indent.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ codeInput.plugins.Indent = class extends codeInput.Plugin {
4949
afterElementsAdded(codeInput) {
5050

5151
let textarea = codeInput.textareaElement;
52-
console.log(textarea);
5352
textarea.addEventListener('focus', (event) => { if(this.escTabToChangeFocus) codeInput.setKeyboardNavInstructions("Tab and Shift-Tab currently for indentation. Press Esc to enable keyboard navigation."); })
5453
textarea.addEventListener('keydown', (event) => { this.checkTab(codeInput, event); this.checkEnter(codeInput, event); this.checkBackspace(codeInput, event); });
5554
textarea.addEventListener('beforeinput', (event) => { this.checkCloseBracket(codeInput, event); });

0 commit comments

Comments
 (0)