mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 06:57:03 +03:00
Array.isArray to isArray
Array.isNotEmpty to isNonEmptyArray
This commit is contained in:
parent
986b8f056b
commit
0b64083543
30 changed files with 82 additions and 69 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import ko from 'ko';
|
||||
import { isArray } from 'Common/Utils';
|
||||
|
||||
export class Selector {
|
||||
/**
|
||||
|
|
@ -79,7 +80,7 @@ export class Selector {
|
|||
|
||||
this.list.subscribe(
|
||||
items => {
|
||||
if (Array.isArray(items)) {
|
||||
if (isArray(items)) {
|
||||
items.forEach(item => {
|
||||
if (item) {
|
||||
const uid = this.getItemUid(item);
|
||||
|
|
@ -115,7 +116,7 @@ export class Selector {
|
|||
this.focusedItem(null);
|
||||
this.selectedItem(null);
|
||||
|
||||
if (Array.isArray(aItems)) {
|
||||
if (isArray(aItems)) {
|
||||
len = aCheckedCache.length;
|
||||
|
||||
aItems.forEach(item => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue