#448 fix flatten edge case

This commit is contained in:
Leo Horie 2015-02-09 23:27:31 -05:00
parent e0aa878fc1
commit 6c13087844

View file

@ -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
}
}