Use Array.isArray instead of instanceof Array.
This commit is contained in:
parent
b21e6a1206
commit
e61d436791
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ function easybake_form()
|
|||
function tag_action_callback(response)
|
||||
{
|
||||
datas = response.data;
|
||||
if (!(datas instanceof Array))
|
||||
if (!Array.isArray(datas))
|
||||
{
|
||||
datas = [datas];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue