fix: remove dead code

This commit is contained in:
Joshua Seigler 2016-10-24 17:26:10 -04:00
parent ead85b1f05
commit 8a850aab22

View file

@ -138,32 +138,6 @@
} }
[markupEl, styleEl, scriptEl].forEach(function (current, index, array) { [markupEl, styleEl, scriptEl].forEach(function (current, index, array) {
var syncFormElementsIndex = syncFormElements.indexOf(current), editor; 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({ editor = new Behave({
textarea: current, textarea: current,
replaceTab: true, replaceTab: true,