Some js logs cleaning.
This commit is contained in:
parent
d37ec75550
commit
2e794ea7da
@ -25,10 +25,8 @@ function MDEWrapper(textarea, enableButton, disableButton) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MDEWrapper.prototype.enable = function() {
|
MDEWrapper.prototype.enable = function() {
|
||||||
console.log("enable ")
|
|
||||||
var wrapper = this;
|
var wrapper = this;
|
||||||
if (this.simplemde == null) {
|
if (this.simplemde == null) {
|
||||||
console.log("go");
|
|
||||||
this.simplemde = new SimpleMDE({
|
this.simplemde = new SimpleMDE({
|
||||||
element: wrapper.element,
|
element: wrapper.element,
|
||||||
forceSync: true,
|
forceSync: true,
|
||||||
@ -47,9 +45,7 @@ MDEWrapper.prototype.enable = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MDEWrapper.prototype.disable = function() {
|
MDEWrapper.prototype.disable = function() {
|
||||||
console.log("disable");
|
|
||||||
if (this.simplemde != null) {
|
if (this.simplemde != null) {
|
||||||
console.log("go");
|
|
||||||
this.simplemde.toTextArea();
|
this.simplemde.toTextArea();
|
||||||
this.simplemde = null;
|
this.simplemde = null;
|
||||||
if (this.disableButton) {
|
if (this.disableButton) {
|
||||||
|
Loading…
Reference in New Issue
Block a user