mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Drop windowResize/windowResizeCallback in favor of ResizeObservable
This commit is contained in:
parent
e192b60d69
commit
7a21694396
14 changed files with 25 additions and 110 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import ko from 'ko';
|
||||
|
||||
import { FilterRulesType, FiltersAction } from 'Common/Enums';
|
||||
import { pString, isNonEmptyArray, fakeMd5, delegateRunOnDestroy, windowResizeCallback } from 'Common/Utils';
|
||||
import { pString, isNonEmptyArray, fakeMd5, delegateRunOnDestroy } from 'Common/Utils';
|
||||
import { i18n } from 'Common/Translator';
|
||||
import { getFolderFromCacheList } from 'Common/Cache';
|
||||
|
||||
|
|
@ -114,8 +114,6 @@ class FilterModel extends AbstractModel {
|
|||
return result;
|
||||
});
|
||||
|
||||
this.regDisposables(this.conditions.subscribe(windowResizeCallback));
|
||||
|
||||
this.regDisposables(
|
||||
this.name.subscribe((sValue) => {
|
||||
this.name.error(!sValue);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import { i18n } from 'Common/Translator';
|
|||
import {
|
||||
pInt,
|
||||
previewMessage,
|
||||
windowResize,
|
||||
friendlySize,
|
||||
isNonEmptyArray
|
||||
} from 'Common/Utils';
|
||||
|
|
@ -747,8 +746,6 @@ class MessageModel extends AbstractModel {
|
|||
style = style ? (';' === style.substr(-1) ? style + ' ' : style + '; ') : '';
|
||||
$this.attr('style', style + $this.attr(attr));
|
||||
});
|
||||
|
||||
windowResize(500);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -798,8 +795,6 @@ class MessageModel extends AbstractModel {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
windowResize(500);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue