Some js logs cleaning.

This commit is contained in:
Antonin 2016-06-27 12:25:37 +02:00
parent d37ec75550
commit 2e794ea7da

View File

@ -25,10 +25,8 @@ function MDEWrapper(textarea, enableButton, disableButton) {
}
MDEWrapper.prototype.enable = function() {
console.log("enable ")
var wrapper = this;
if (this.simplemde == null) {
console.log("go");
this.simplemde = new SimpleMDE({
element: wrapper.element,
forceSync: true,
@ -47,9 +45,7 @@ MDEWrapper.prototype.enable = function() {
}
MDEWrapper.prototype.disable = function() {
console.log("disable");
if (this.simplemde != null) {
console.log("go");
this.simplemde.toTextArea();
this.simplemde = null;
if (this.disableButton) {