remove console logging

pull/93/head
roryok 5 years ago
parent 8c443bf401
commit c75a5edc1e

@ -995,7 +995,7 @@ function _toggleLine(cm, name) {
return char && rt.test(char); return char && rt.test(char);
}; };
var _do = function (name, text, untoggleOnly) { var _toggle = function (name, text, untoggleOnly) {
var arr = listRegexp.exec(text); var arr = listRegexp.exec(text);
var char = _getChar(name, line); var char = _getChar(name, line);
if (arr !== null) { if (arr !== null) {
@ -1020,9 +1020,9 @@ function _toggleLine(cm, name) {
// is part of an ordered-list, and if so, untoggle that first. // is part of an ordered-list, and if so, untoggle that first.
// Workaround for https://github.com/Ionaru/easy-markdown-editor/issues/92 // Workaround for https://github.com/Ionaru/easy-markdown-editor/issues/92
if (name == 'unordered-list') { if (name == 'unordered-list') {
text = _do('ordered-list', text, true); text = _toggle('ordered-list', text, true);
} }
text = _do(name, text, false); text = _toggle(name, text, false);
line += 1; line += 1;
} }
cm.replaceRange(text, { cm.replaceRange(text, {
@ -1378,7 +1378,6 @@ var blockStyles = {
* Interface of EasyMDE. * Interface of EasyMDE.
*/ */
function EasyMDE(options) { function EasyMDE(options) {
console.log('oh hai');
// Handle options parameter // Handle options parameter
options = options || {}; options = options || {};

Loading…
Cancel
Save