Browse files

cleanups

  • Loading branch information...
1 parent 390ddc8 commit 1ebea222d7036a1b66d7ea7fbb63e59d3b358253 mpd committed May 12, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 heatmap.js
View
10 heatmap.js
@@ -132,15 +132,15 @@ $(function () {
* v: 0-1, decimals ok
*/
hueToRGB = function(h, s, v) {
- var cachekey = h + "/" + s + "/" + v;
+ var r, g, b,
+ i,
+ f, p, q, t,
+ cachekey = h + "/" + s + "/" + v;
+
if (cache.hueToRGB[cachekey]) {
return cache.hueToRGB[cachekey];
}
- var r, g, b;
- var i;
- var f, p, q, t;
-
// Make sure our arguments stay in-range
h = Math.max(0, Math.min(360, h));
s = Math.max(0, Math.min(1, s));

0 comments on commit 1ebea22

Please sign in to comment.