Mercurial > hg
diff mercurial/parsers.c @ 16138:6e4de55a41a4
hgweb: refactor graph customization javascript
- Avoid flipping lineWidth state around the edge() call, pass it to the
function instead.
- Pass the line width and color appended to the other parameters instead of in
a dictionary. The javascript code is simpler, no need to check for all
containers existence, and the JSON output is smaller.
- Reindent setColor() comments and fix code spacing.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sun, 22 Jan 2012 19:35:26 +0700 |
parents | 2ef2d3a5cd2d |
children | 2cdd7e63211b |