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) {
(function () {
var cm = _this2.codemirror;
cm.on("change", function () {
return cm.save();
});
})();
this.codemirror.on("change", function () {
return _this2.codemirror.save();
});
}
this.gui = {};
@ -17011,10 +17008,9 @@ var SimpleMDE = function (_Action) {
this._rendered = this.element;
// Fixes CodeMirror bug (#344)
var temp_cm = this.codemirror;
setTimeout(function () {
temp_cm.refresh();
}.bind(temp_cm), 0);
_this2.codemirror.refresh();
}, 0);
}
}, {
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) {
const cm = this.codemirror;
cm.on("change", () => cm.save());
this.codemirror.on("change", () => this.codemirror.save());
}
this.gui = {};
@ -247,10 +246,9 @@ class SimpleMDE extends Action {
this._rendered = this.element;
// Fixes CodeMirror bug (#344)
const temp_cm = this.codemirror;
setTimeout(function() {
temp_cm.refresh();
}.bind(temp_cm), 0);
setTimeout(() => {
this.codemirror.refresh();
}, 0);
};

Loading…
Cancel
Save