mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
remove unused aCache
This commit is contained in:
parent
8623bb5d60
commit
7f62d9b7aa
1 changed files with 2 additions and 6 deletions
|
@ -87,8 +87,7 @@ export class Selector {
|
|||
* Below code is used to keep checked/focused/selected states when array is refreshed.
|
||||
*/
|
||||
|
||||
let aCache = [],
|
||||
aCheckedCache = [],
|
||||
let aCheckedCache = [],
|
||||
mFocused = null,
|
||||
mSelected = null;
|
||||
|
||||
|
@ -99,7 +98,6 @@ export class Selector {
|
|||
items.forEach(item => {
|
||||
const uid = this.getItemUid(item);
|
||||
if (uid) {
|
||||
aCache.push(uid);
|
||||
item.checked() && aCheckedCache.push(uid);
|
||||
if (!mFocused && item.focused()) {
|
||||
mFocused = uid;
|
||||
|
@ -118,8 +116,7 @@ export class Selector {
|
|||
koList.subscribe(aItems => {
|
||||
selectedItemUseCallback = false;
|
||||
|
||||
koFocusedItem(null);
|
||||
koSelectedItem(null);
|
||||
this.unselect();
|
||||
|
||||
if (isArray(aItems)) {
|
||||
let temp,
|
||||
|
@ -182,7 +179,6 @@ export class Selector {
|
|||
}
|
||||
}
|
||||
|
||||
aCache = [];
|
||||
aCheckedCache = [];
|
||||
mFocused = null;
|
||||
mSelected = null;
|
||||
|
|
Loading…
Reference in a new issue