function domain of optimization function

pull/510/head
WittBulter 7 years ago
parent 3cb8fa13b3
commit 4c7bae0caf

File diff suppressed because one or more lines are too long

@ -16987,12 +16987,9 @@ var SimpleMDE = function (_Action) {
}); });
if (options.forceSync === true) { if (options.forceSync === true) {
(function () { this.codemirror.on("change", function () {
var cm = _this2.codemirror; return _this2.codemirror.save();
cm.on("change", function () { });
return cm.save();
});
})();
} }
this.gui = {}; this.gui = {};
@ -17011,10 +17008,9 @@ var SimpleMDE = function (_Action) {
this._rendered = this.element; this._rendered = this.element;
// Fixes CodeMirror bug (#344) // Fixes CodeMirror bug (#344)
var temp_cm = this.codemirror;
setTimeout(function () { setTimeout(function () {
temp_cm.refresh(); _this2.codemirror.refresh();
}.bind(temp_cm), 0); }, 0);
} }
}, { }, {
key: 'autosave', key: 'autosave',

File diff suppressed because one or more lines are too long

@ -227,8 +227,7 @@ class SimpleMDE extends Action {
}); });
if(options.forceSync === true) { if(options.forceSync === true) {
const cm = this.codemirror; this.codemirror.on("change", () => this.codemirror.save());
cm.on("change", () => cm.save());
} }
this.gui = {}; this.gui = {};
@ -247,10 +246,9 @@ class SimpleMDE extends Action {
this._rendered = this.element; this._rendered = this.element;
// Fixes CodeMirror bug (#344) // Fixes CodeMirror bug (#344)
const temp_cm = this.codemirror; setTimeout(() => {
setTimeout(function() { this.codemirror.refresh();
temp_cm.refresh(); }, 0);
}.bind(temp_cm), 0);
}; };

Loading…
Cancel
Save