Skip to content

Commit

Permalink
Fix isArray exception
Browse files Browse the repository at this point in the history
  • Loading branch information
zafrirron committed Oct 3, 2024
1 parent 039b36b commit e37ac6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worldmap/worldmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2532,7 +2532,7 @@ function doCommand(cmd) {
}
if (cmd.hasOwnProperty("clearlayer") || cmd.hasOwnProperty("clear")) {
var clr = cmd.clearlayer || cmd.clear;
if (!isArray(clr)) { clr = [ clr ]; }
if (!Array.isArray(clr)) { clr = [ clr ]; }
clr.forEach((el) => doTidyUp(el));
}
if (cmd.hasOwnProperty("panit")) {
Expand Down

0 comments on commit e37ac6e

Please sign in to comment.