Skip to content

Commit

Permalink
typo and size check
Browse files Browse the repository at this point in the history
  • Loading branch information
tzellman committed Aug 25, 2014
1 parent c912591 commit 063c1a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions d3.layout.cloud.js
Expand Up @@ -65,12 +65,14 @@
} else {
// reset
delete d.sprite;
d.sprint = null;
d.sprite = null;
d.x = x;
d.y = y;
// decrement the size until it fits
d.size = nsi < data.length ? data[nsi++].size : d.size - (d.size >> 3);
cloudSprite(d, data, i);
if (~~d.size > 0) {
cloudSprite(d, data, i);
}
}
}
}
Expand Down

0 comments on commit 063c1a3

Please sign in to comment.