From 8a850aab22823c1ba23cb20da0624767f2290f06 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Mon, 24 Oct 2016 17:26:10 -0400 Subject: [PATCH] fix: remove dead code --- scripts/app.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/scripts/app.js b/scripts/app.js index 0b08144..cad1c8e 100644 --- a/scripts/app.js +++ b/scripts/app.js @@ -138,32 +138,6 @@ } [markupEl, styleEl, scriptEl].forEach(function (current, index, array) { var syncFormElementsIndex = syncFormElements.indexOf(current), editor; -// // add a listener to do indenting -// current.addEventListener('keydown', function(event) { -// var initialScroll, beforeCursor, inSelection, afterCursor, selectionMin, selectionMax, replacedText; -// beforeCursor = current.value.slice(0, selectionMin); -// inSelection = current.value.slice(selectionMin, selectionMax); -// afterCursor = current.value.slice(selectionMax); -// initialScroll = current.scrollTop; -// if (event.keyCode === 13) { -// // NEWLINE -// event.preventDefault(); -// replacedText = "\n"; -// document.execCommand("insertText", false, replacedText); -// selectionMin += replacedText.length; -// selectionMax = selectionMin; -// current.scrollTop = initialScroll; -// } else if (event.keyCode === 9) { -// // TAB -// event.preventDefault(); -// event.stopPropagation(); -// replacedText = "\t"; -// document.execCommand("insertText", false, replacedText); -// selectionMin += replacedText.length; -// selectionMax = selectionMin; -// current.scrollTop = initialScroll; -// } -// }); editor = new Behave({ textarea: current, replaceTab: true,