#448 fix flatten edge case
This commit is contained in:
parent
e0aa878fc1
commit
6c13087844
1 changed files with 1 additions and 0 deletions
|
|
@ -117,6 +117,7 @@ var m = (function app(window, undefined) {
|
|||
if (type.call(data[i]) === ARRAY) {
|
||||
data = data.concat.apply([], data);
|
||||
i-- //check current index again and flatten until there are no more nested arrays at that index
|
||||
len = data.length
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue