Skip to content

Commit 3d08a48

Browse files
authored
Merge pull request NeXTs#138 from PaintServer/master
Bail upon non-existent node element
2 parents 617159b + 79dff9d commit 3d08a48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clusterize.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
opts.cluster_height = 0;
177177
if( ! rows.length) return;
178178
var nodes = this.content_elem.children;
179+
if( ! nodes.length) return;
179180
var node = nodes[Math.floor(nodes.length / 2)];
180181
opts.item_height = node.offsetHeight;
181182
// consider table's border-spacing

0 commit comments

Comments
 (0)