mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-10-30 09:03:33 +03:00
KnockoutJS use Array.isArray
This commit is contained in:
parent
a40e6484a1
commit
ee3aa16fcf
2 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ ko.bindingHandlers['options'] = {
|
|||
}
|
||||
|
||||
if (unwrappedArray) {
|
||||
if (typeof unwrappedArray.length == "undefined") // Coerce single value into array
|
||||
if (!Array.isArray(unwrappedArray)) // Coerce single value into array
|
||||
unwrappedArray = [unwrappedArray];
|
||||
|
||||
// Filter out any entries marked as destroyed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue