Skip to content

Commit 2ec5bcc

Browse files
committed
fix silly mistake
1 parent 4463234 commit 2ec5bcc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

inst/htmlwidgets/plotly.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -573,20 +573,20 @@ function findNestedMatches(haystack, needleSet) {
573573

574574
// ensure haystack is an array of an arrays
575575
if (!Array.isArray(haystack)) {
576-
haystack = [haystack];
577-
for (var i = 0; i < haystack.length; i++) {
578-
if (!Array.isArray(haystack[i])) {
579-
haystack[i] = [haystack[i]];
580-
}
576+
haystack = [haystack];
577+
}
578+
for (var i = 0; i < haystack.length; i++) {
579+
if (!Array.isArray(haystack[i])) {
580+
haystack[i] = [haystack[i]];
581581
}
582582
}
583583
// ensure needleSet is an array of an arrays
584584
if (!Array.isArray(needleSet)) {
585585
needleSet = [needleSet];
586-
for (var i = 0; i < needleSet.length; i++) {
587-
if (!Array.isArray(needleSet[i])) {
588-
needleSet[i] = [needleSet[i]];
589-
}
586+
}
587+
for (var i = 0; i < needleSet.length; i++) {
588+
if (!Array.isArray(needleSet[i])) {
589+
needleSet[i] = [needleSet[i]];
590590
}
591591
}
592592

0 commit comments

Comments
 (0)