fix some travis bug

This commit is contained in:
lxsang 2020-06-22 12:27:02 +02:00
parent 297aecc53c
commit 9281cfb8db
2 changed files with 2 additions and 8 deletions

View File

@ -182,7 +182,7 @@ namespace OS {
if (this.timer) { if (this.timer) {
clearTimeout(this.timer); clearTimeout(this.timer);
} }
return (this.timer = setTimeout(() => func(), t)); return (this.timer = window.setTimeout(() => func(), t));
}; };
return func(); return func();
} }

View File

@ -1,9 +1,3 @@
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS208: Avoid top-level this
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
// Copyright 2017-2018 Xuan Sang LE <xsang.le AT gmail DOT com> // Copyright 2017-2018 Xuan Sang LE <xsang.le AT gmail DOT com>
// AnTOS Web desktop is is licensed under the GNU General Public // AnTOS Web desktop is is licensed under the GNU General Public
@ -211,7 +205,7 @@ namespace OS {
let timer: number; let timer: number;
this.mfeed.unshift(d); this.mfeed.unshift(d);
$(this.fzone).show(); $(this.fzone).show();
timer = setTimeout(() => { timer = window.setTimeout(() => {
this.mfeed.delete(d.domel); this.mfeed.delete(d.domel);
if (this.mfeed.data.length === 0) { if (this.mfeed.data.length === 0) {
$(this.fzone).hide(); $(this.fzone).hide();