Skip the first encountered node (since it is the root of the collapsed tree)

This commit is contained in:
Joseph Schorr 2013-10-11 01:10:23 -04:00
parent 04d4024d8c
commit 44eef148e7

View file

@ -98,7 +98,7 @@ ImageHistoryTree.prototype.draw = function(container) {
.html(function(d) {
var html = '';
if (d.collapsed) {
for (var i = 0; i < d.encountered.length; ++i) {
for (var i = 1; i < d.encountered.length; ++i) {
html += '<span>' + d.encountered[i].image.id.substr(0, 12) + '</span>';
html += '<span class="created">' + formatTime(d.encountered[i].image.created) + '</span>';
}