Set back correct `MAX_VISIBLE_CHILDS`

This commit is contained in:
jos 2018-05-16 21:17:56 +02:00
parent 02ae08173b
commit 916c657e28
2 changed files with 4 additions and 1 deletions

View File

@ -42,7 +42,6 @@ Node.prototype.DEBOUNCE_INTERVAL = 150;
// number of visible childs rendered initially in large arrays/objects (with a "show more" button to show more)
Node.prototype.MAX_VISIBLE_CHILDS = 100;
Node.prototype.MAX_VISIBLE_CHILDS = 10; // FIXME: cleanup
// default value for the max visible childs of large arrays
Node.prototype.visibleChilds = Node.prototype.MAX_VISIBLE_CHILDS;

View File

@ -55,10 +55,14 @@
};
var json = {
empty: [],
numbers: [],
abc: 123,
array: [],
object: { a: 2, b: 3}
};
for (var i = 0; i < 10000; i++) {
json.numbers.push(i);
json.array.push({
name: 'Item ' + i,
index: i,