Commit b89937eb authored by Alex Hoyau's avatar Alex Hoyau

speedup undo/redo

parent d1873639
......@@ -389,10 +389,10 @@ silex.model.File.prototype.getHtmlAsync = function (cbk) {
silex.model.File.prototype.getHtmlNextStep = function (cbk, generator) {
let res = generator.next();
if(res.done) {
setTimeout(() => cbk(res.value), 100);
setTimeout(() => cbk(res.value), 0);
}
else {
setTimeout(() => this.getHtmlNextStep(cbk, generator), 100);
setTimeout(() => this.getHtmlNextStep(cbk, generator), 0);
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment