Skip to content

Commit

Permalink
kill these huge console.logs. Remind myself to not redraw the graph 1…
Browse files Browse the repository at this point in the history
…00 times
  • Loading branch information
ggreer committed Aug 31, 2012
1 parent 501373f commit aa9649e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ function draw_graph() {
.attr("width", width)
.attr("class", "chart");

console.log("drawing graph...");
var data_arr = [];
for (var k in data) {
data_arr.push(data[k]);
}
console.log(data_arr);

data_arr.sort(function (a,b) {
if (a.visits.length > b.visits.length) {
return -1;
Expand Down Expand Up @@ -107,6 +106,7 @@ function set_history(url) {
else {
data[url_no_hash].visits.push(visits);
}
// TODO: this is super-inefficient
draw_graph();
};
}
Expand Down

0 comments on commit aa9649e

Please sign in to comment.